Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 104.1 kB / 17.58 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 56.14 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08854/0.09013, allocations: 46.62 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003862/0.09402, allocations: 2.42 MB / 329.8 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.09589, allocations: 1.011 MB / 330.8 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.09602, allocations: 4 kB / 330.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.09624, allocations: 51.5 kB / 330.9 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004587/0.09671, allocations: 167 kB / 331 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.09708, allocations: 175.7 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004873/0.09758, allocations: 474.5 kB / 331.7 MB, free: 60 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002209/0.0978, allocations: 88.77 kB / 331.7 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.09811, allocations: 211.3 kB / 332 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.09845, allocations: 239.2 kB / 332.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.019e-05/0.09852, allocations: 36 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.09879, allocations: 123.9 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.09895, allocations: 103.7 kB / 332.4 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.09917, allocations: 191.1 kB / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005628/0.09974, allocations: 494.7 kB / 333.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09976, allocations: 0 / 333.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.09976, allocations: 0 / 333.1 MB, free: 14.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.09977, allocations: 0 / 333.1 MB, free: 14.6 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001241/0.101, allocations: 0.6744 MB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.1011, allocations: 12.03 kB / 333.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.741e-05/0.1012, allocations: 66.72 kB / 333.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.1015, allocations: 60.44 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.1019, allocations: 311.5 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.102, allocations: 92.55 kB / 334.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.331e-05/0.1021, allocations: 36.31 kB / 334.4 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007581/0.1029, allocations: 416.9 kB / 334.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1029, allocations: 4 kB / 334.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.103, allocations: 8 kB / 334.8 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.103, allocations: 8 kB / 334.8 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.104, allocations: 474.2 kB / 335.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.1057, allocations: 0.9774 MB / 336.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008042/0.1065, allocations: 404.5 kB / 336.6 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004695/0.107, allocations: 234.1 kB / 336.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.1071, allocations: 8.438 kB / 336.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.1071, allocations: 39 kB / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.644e-06/0.1071, allocations: 0 / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005305/0.1124, allocations: 2.156 MB / 339 MB, free: 8.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.1125, allocations: 81.67 kB / 339.1 MB, free: 8.258 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.1128, allocations: 259.1 kB / 339.4 MB, free: 7.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.1129, allocations: 41.69 kB / 339.4 MB, free: 7.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.113, allocations: 145 kB / 339.6 MB, free: 7.801 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.1132, allocations: 189.4 kB / 339.7 MB, free: 7.613 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.1133, allocations: 90.16 kB / 339.8 MB, free: 7.52 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1135, allocations: 338.8 kB / 340.2 MB, free: 7.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/0.1139, allocations: 201 kB / 340.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004833/0.1144, allocations: 244.6 kB / 340.6 MB, free: 6.734 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008398/0.1153, allocations: 392.4 kB / 341 MB, free: 6.348 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1153, allocations: 0 / 341 MB, free: 6.348 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001284/0.1166, allocations: 0.6134 MB / 341.6 MB, free: 5.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1166, allocations: 11.94 kB / 341.6 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1166, allocations: 4 kB / 341.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008528/0.1175, allocations: 261.9 kB / 341.9 MB, free: 5.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.1179, allocations: 67.88 kB / 341.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004113/0.122, allocations: 2.924 MB / 344.9 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.1224, allocations: 32 kB / 344.9 MB, free: 2.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.1224, allocations: 16 kB / 344.9 MB, free: 2.277 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002169/0.1226, allocations: 165.8 kB / 345.1 MB, free: 2.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.45e-05/0.1227, allocations: 27.62 kB / 345.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.1228, allocations: 55.3 kB / 345.1 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1229, allocations: 4 kB / 345.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1229, allocations: 0 / 345.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1229, allocations: 0 / 345.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.1251, allocations: 1.272 MB / 346.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1251, allocations: 0 / 346.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.1255, allocations: 71.88 kB / 346.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006656/0.1261, allocations: 240.7 kB / 346.7 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.1262, allocations: 12 kB / 346.7 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003836/0.13, allocations: 2.854 MB / 349.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.13, allocations: 0 / 349.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.1319, allocations: 0.9572 MB / 350.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.1321, allocations: 148.7 kB / 350.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.618e-05/0.1322, allocations: 15.94 kB / 350.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.1325, allocations: 27.97 kB / 350.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.1326, allocations: 64.34 kB / 350.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.1327, allocations: 19.98 kB / 350.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.1329, allocations: 200.6 kB / 351 MB, free: 11.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1329, allocations: 0 / 351 MB, free: 11.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006231/0.1336, allocations: 156.1 kB / 351.2 MB, free: 11.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002397/0.136, allocations: 1.557 MB / 352.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.1376, allocations: 0.7268 MB / 353.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1376, allocations: 0 / 353.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008517/0.1384, allocations: 479.6 kB / 353.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.1389, allocations: 36.42 kB / 354 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006302/0.1452, allocations: 3.849 MB / 357.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.1457, allocations: 0.8045 MB / 358.6 MB, free: 4.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000231/0.1459, allocations: 58.94 kB / 358.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/0.1461, allocations: 99.39 kB / 358.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1461, allocations: 4 kB / 358.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04096/0.1871, allocations: 10.77 MB / 369.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.36, allocations: 11.69 kB / 369.5 MB, free: 9.113 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w