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.001881/0.001881, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.002279/0.002279, 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 2.708/2.708, 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.00274/0.00274, allocations: 56.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.15, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006648/0.1567, allocations: 2.416 MB / 329.8 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.1598, allocations: 1.019 MB / 330.8 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003264/0.1601, allocations: 4 kB / 330.8 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003486/0.1605, allocations: 47.52 kB / 330.9 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.1616, allocations: 159 kB / 331 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006896/0.1623, allocations: 183.6 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008289/0.1631, allocations: 466.5 kB / 331.7 MB, free: 68 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.1635, allocations: 92.7 kB / 331.7 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005519/0.1641, allocations: 207.4 kB / 331.9 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.1647, allocations: 247.2 kB / 332.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.1648, allocations: 36 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004382/0.1653, allocations: 123.9 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002601/0.1656, allocations: 103.7 kB / 332.4 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003661/0.166, allocations: 187.1 kB / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009045/0.1669, allocations: 490.7 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1669, allocations: 4 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1669, allocations: 0 / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.526e-05/0.1669, allocations: 0 / 333.1 MB, free: 14.61 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.002165/0.1691, allocations: 0.6744 MB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.1692, allocations: 8.031 kB / 333.8 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001599/0.1694, allocations: 70.72 kB / 333.9 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005697/0.1699, allocations: 56.44 kB / 333.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007655/0.1707, allocations: 315.5 kB / 334.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.1709, allocations: 96.53 kB / 334.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1711, allocations: 28.38 kB / 334.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.1725, allocations: 420.8 kB / 334.8 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.1726, allocations: 7.984 kB / 334.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.1727, allocations: 12 kB / 334.8 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.1727, allocations: 8 kB / 334.8 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.1746, allocations: 466.3 kB / 335.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.1777, allocations: 0.9735 MB / 336.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.1791, allocations: 404.6 kB / 336.6 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008178/0.1799, allocations: 234.1 kB / 336.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.18, allocations: 12.42 kB / 336.9 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.1801, allocations: 39 kB / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 4.168e-06/0.1801, allocations: 0 / 336.9 MB, free: 10.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.00943/0.1895, allocations: 2.16 MB / 339.1 MB, free: 8.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.302e-05/0.1897, allocations: 89.66 kB / 339.1 MB, free: 8.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005904/0.1903, allocations: 259.1 kB / 339.4 MB, free: 7.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/0.1904, allocations: 33.7 kB / 339.4 MB, free: 7.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.1906, allocations: 141 kB / 339.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.1909, allocations: 181.4 kB / 339.7 MB, free: 7.625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.1913, allocations: 94.16 kB / 339.8 MB, free: 7.527 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002419/0.1915, allocations: 342.8 kB / 340.2 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008134/0.1923, allocations: 204.9 kB / 340.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008393/0.1932, allocations: 240.6 kB / 340.6 MB, free: 6.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.1947, allocations: 388.4 kB / 341 MB, free: 6.355 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.1947, allocations: 4 kB / 341 MB, free: 6.352 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002237/0.197, allocations: 0.6134 MB / 341.6 MB, free: 5.727 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.197, allocations: 7.938 kB / 341.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1971, allocations: 0 / 341.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.1984, allocations: 261.8 kB / 341.9 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005521/0.199, allocations: 67.89 kB / 341.9 MB, free: 5.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007384/0.2064, allocations: 2.94 MB / 344.9 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000617/0.207, allocations: 27.97 kB / 344.9 MB, free: 2.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.2072, 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.0004934/0.2077, allocations: 157.8 kB / 345.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.2079, allocations: 31.62 kB / 345.1 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.2081, allocations: 55.36 kB / 345.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.2082, allocations: 8 kB / 345.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2082, allocations: 3.938 kB / 345.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.2082, allocations: 3.984 kB / 345.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004179/0.2124, allocations: 1.264 MB / 346.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.2124, allocations: 0 / 346.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.213, allocations: 63.89 kB / 346.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.2142, allocations: 244.7 kB / 346.7 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.536e-05/0.2143, allocations: 15.98 kB / 346.7 MB, free: 372 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006781/0.2211, allocations: 2.842 MB / 349.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.2211, allocations: 8.062 kB / 349.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003206/0.2243, allocations: 0.9494 MB / 350.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.2247, allocations: 152.7 kB / 350.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.2248, allocations: 23.94 kB / 350.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/0.2254, allocations: 27.97 kB / 350.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002881/0.2257, allocations: 68.33 kB / 350.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.059e-05/0.2257, allocations: 16 kB / 350.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004036/0.2261, allocations: 200.6 kB / 351 MB, free: 11.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2262, allocations: 0 / 351 MB, free: 11.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001151/0.2273, allocations: 152 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.003937/0.2313, allocations: 1.557 MB / 352.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002707/0.234, allocations: 0.7267 MB / 353.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.234, allocations: 64 / 353.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.2356, allocations: 483.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.0008033/0.2364, 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.01054/0.2469, 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.0005562/0.2475, allocations: 0.8006 MB / 358.6 MB, free: 4.129 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004204/0.248, allocations: 58.94 kB / 358.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.2483, allocations: 95.39 kB / 358.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of SimCode: time 5.48e-06/0.2483, allocations: 0 / 358.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05943/0.3077, allocations: 10.78 MB / 369.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/18.28, allocations: 7.75 kB / 369.5 MB, free: 9.117 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