Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000824/0.000824, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00331/0.00331, allocations: 163.6 kB / 24.69 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8464/0.8464, allocations: 158.6 MB / 186.5 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 298.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.304e-05/1.479e-05, allocations: 6.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002798/0.002813, allocations: 2.222 MB / 300.7 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.004113, allocations: 0.9216 MB / 301.6 MB, free: 368 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.004241, allocations: 4 kB / 301.6 MB, free: 364 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.004425, allocations: 47.58 kB / 301.6 MB, free: 316 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004606/0.004886, allocations: 143.1 kB / 301.8 MB, free: 172 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.005169, allocations: 171.6 kB / 301.9 MB, free: 0 / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005519/0.005721, allocations: 422.2 kB / 302.3 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.005891, allocations: 50.39 kB / 302.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.006145, allocations: 253.7 kB / 302.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.006394, allocations: 193.1 kB / 302.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.048e-05/0.006445, allocations: 32.56 kB / 302.9 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.006674, allocations: 113.1 kB / 303 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.006794, allocations: 99.97 kB / 303.1 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.006894, allocations: 118.7 kB / 303.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005451/0.00744, allocations: 490.9 kB / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.007445, allocations: 1.219 kB / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.007446, allocations: 0 / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.007457, allocations: 0 / 303.7 MB, free: 13.13 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008183/0.008275, allocations: 0.5609 MB / 304.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.008315, allocations: 18.8 kB / 304.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.184e-05/0.008367, allocations: 61.86 kB / 304.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.008557, allocations: 56.42 kB / 304.4 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.008944, allocations: 248.4 kB / 304.6 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.958e-05/0.009034, allocations: 140.6 kB / 304.7 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.009076, allocations: 26.97 kB / 304.8 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.009558, allocations: 405.8 kB / 305.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.009573, allocations: 2.562 kB / 305.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.0096, allocations: 18.38 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.00961, allocations: 6.406 kB / 305.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005777/0.01019, allocations: 415.6 kB / 305.6 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.0115, allocations: 1.101 MB / 306.7 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004636/0.01197, allocations: 336.4 kB / 307 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002353/0.0122, allocations: 169.5 kB / 307.2 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.01223, allocations: 7.719 kB / 307.2 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.01225, allocations: 38.59 kB / 307.2 MB, free: 11.36 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 1.363e-06/0.01225, allocations: 0 / 307.2 MB, free: 11.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.002708/0.01495, allocations: 1.687 MB / 308.9 MB, free: 10.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.01498, allocations: 85.92 kB / 309 MB, free: 10.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.01517, allocations: 242.1 kB / 309.2 MB, free: 10.38 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.01519, allocations: 36.98 kB / 309.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.01524, allocations: 140.5 kB / 309.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.672e-05/0.01531, allocations: 154.3 kB / 309.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.262e-05/0.0154, allocations: 81 kB / 309.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.01544, allocations: 336.6 kB / 310 MB, free: 9.727 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.01566, allocations: 166.5 kB / 310.1 MB, free: 9.672 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.01591, allocations: 265.3 kB / 310.4 MB, free: 9.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.01631, allocations: 347.2 kB / 310.7 MB, free: 9.367 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.01631, allocations: 0 / 310.7 MB, free: 9.367 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006688/0.01698, allocations: 0.5466 MB / 311.3 MB, free: 9.145 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.017, allocations: 6.203 kB / 311.3 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.017, allocations: 4.125 kB / 311.3 MB, free: 9.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004526/0.01746, allocations: 252.3 kB / 311.5 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.01759, allocations: 53.3 kB / 311.6 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.01986, allocations: 2.739 MB / 314.3 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.01999, allocations: 35 kB / 314.4 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.02002, allocations: 18.19 kB / 314.4 MB, free: 7.035 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.02013, allocations: 149.4 kB / 314.5 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.02017, allocations: 29.36 kB / 314.6 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.02021, allocations: 42.38 kB / 314.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.02021, allocations: 3.719 kB / 314.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.02022, allocations: 1.344 kB / 314.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.02022, allocations: 6.422 kB / 314.6 MB, free: 6.848 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.02134, allocations: 0.9909 MB / 315.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.02134, allocations: 1.281 kB / 315.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.02146, allocations: 46.72 kB / 315.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003749/0.02184, allocations: 236.5 kB / 315.9 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.02186, allocations: 8.766 kB / 315.9 MB, free: 6.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002105/0.02396, allocations: 2.703 MB / 318.6 MB, free: 4.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.02397, allocations: 5.906 kB / 318.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009461/0.02491, allocations: 0.8156 MB / 319.4 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.5e-05/0.02501, allocations: 60.48 kB / 319.5 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.839e-05/0.02504, allocations: 8.688 kB / 319.5 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.02515, allocations: 24.23 kB / 319.5 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.02528, allocations: 68.45 kB / 319.6 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.02531, allocations: 16.58 kB / 319.6 MB, free: 3.766 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001241/0.02543, allocations: 182.6 kB / 319.8 MB, free: 3.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02543, allocations: 0 / 319.8 MB, free: 3.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00041/0.02584, allocations: 139 kB / 319.9 MB, free: 3.641 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001204/0.02704, allocations: 1.412 MB / 321.3 MB, free: 2.703 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008557/0.0279, allocations: 0.6044 MB / 321.9 MB, free: 2.418 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.0279, allocations: 0 / 321.9 MB, free: 2.418 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004385/0.02834, allocations: 416.6 kB / 322.3 MB, free: 2.191 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.02862, allocations: 38.64 kB / 322.4 MB, free: 2.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.03188, allocations: 3.39 MB / 325.7 MB, free: 96 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.03201, allocations: 176.5 kB / 325.9 MB, free: 12 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.03213, allocations: 57.41 kB / 326 MB, free: 4 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.03232, allocations: 97.3 kB / 326.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.03232, allocations: 4 kB / 326.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.05811, allocations: 9.926 MB / 336 MB, free: 8.098 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.839/7.898, allocations: 0 / 336 MB, free: 8.098 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.667557088658214]