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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 106 kB / 21.18 MB, free: 0.707 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 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 1.465/1.465, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "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.001791/0.001791, allocations: 51.92 kB / 347.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3792, allocations: 49.16 MB / 396.8 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003945/0.3832, allocations: 2.442 MB / 399.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.3851, allocations: 1.032 MB / 400.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.3853, allocations: 8.25 kB / 400.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.3856, allocations: 49.2 kB / 400.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005986/0.3862, allocations: 160.6 kB / 400.5 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.3866, allocations: 175 kB / 400.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006217/0.3872, allocations: 474.3 kB / 401.1 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.3874, allocations: 64.61 kB / 401.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.3878, allocations: 219.3 kB / 401.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000406/0.3882, allocations: 254.1 kB / 401.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.51e-05/0.3883, allocations: 41.06 kB / 401.7 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.3886, allocations: 127.2 kB / 401.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.3888, allocations: 112.6 kB / 401.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.389, allocations: 181.9 kB / 402.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007961/0.3898, allocations: 0.497 MB / 402.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3898, allocations: 1 kB / 402.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3898, allocations: 0 / 402.6 MB, free: 6.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.3898, allocations: 0 / 402.6 MB, free: 6.062 MB / 318.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.001432/0.3912, allocations: 0.6059 MB / 403.2 MB, free: 5.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3913, allocations: 12.92 kB / 403.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004302/0.3917, allocations: 58.62 kB / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.3923, allocations: 270.4 kB / 403.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.3924, allocations: 89.69 kB / 403.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-05/0.3925, allocations: 28.94 kB / 403.7 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009032/0.3934, allocations: 416 kB / 404.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.3934, allocations: 2.016 kB / 404.1 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.3934, allocations: 19.66 kB / 404.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3935, allocations: 7.656 kB / 404.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.3945, allocations: 469.1 kB / 404.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.3964, allocations: 0.9101 MB / 405.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008605/0.3973, allocations: 382.7 kB / 405.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.3978, allocations: 218 kB / 406 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.3978, allocations: 8.547 kB / 406 MB, free: 4.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.3978, allocations: 38.36 kB / 406.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.584e-06/0.3978, allocations: 0 / 406.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005541/0.4034, allocations: 1.928 MB / 408 MB, free: 3.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.4034, allocations: 84.52 kB / 408.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.4039, allocations: 257.4 kB / 408.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/0.4039, allocations: 36.81 kB / 408.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.404, allocations: 137.7 kB / 408.5 MB, free: 2.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.4042, allocations: 193.9 kB / 408.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.4044, allocations: 88.55 kB / 408.8 MB, free: 2.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.4045, allocations: 347.4 kB / 409.1 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004968/0.405, allocations: 197 kB / 409.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005288/0.4055, allocations: 243 kB / 409.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000859/0.4064, allocations: 404.6 kB / 410 MB, free: 2.074 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4064, allocations: 0 / 410 MB, free: 2.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001337/0.4077, allocations: 0.5988 MB / 410.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.4077, allocations: 5.969 kB / 410.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4078, allocations: 5.188 kB / 410.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008187/0.4086, allocations: 257 kB / 410.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.4089, allocations: 70.95 kB / 410.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004012/0.4129, allocations: 2.83 MB / 413.7 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.4133, allocations: 28.81 kB / 413.7 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.4134, allocations: 16.5 kB / 413.8 MB, free: 15.33 MB / 334.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.0003164/0.4137, allocations: 162.3 kB / 413.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.4138, allocations: 34.34 kB / 414 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.4139, allocations: 53.33 kB / 414 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.4139, allocations: 5.75 kB / 414 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4139, allocations: 0 / 414 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-06/0.4139, allocations: 0 / 414 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.4166, allocations: 1.224 MB / 415.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.4166, allocations: 0 / 415.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.4169, allocations: 67.45 kB / 415.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007404/0.4177, allocations: 241.8 kB / 415.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.4177, allocations: 19.64 kB / 415.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004348/0.422, allocations: 2.748 MB / 418.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4221, allocations: 0 / 418.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.4241, allocations: 0.9423 MB / 419.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002121/0.4243, allocations: 80.88 kB / 419.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.4243, allocations: 15.84 kB / 419.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.4246, allocations: 28.44 kB / 419.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.4248, allocations: 66 kB / 419.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.4249, allocations: 22.42 kB / 419.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000303/0.4252, allocations: 194.7 kB / 419.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4252, allocations: 0 / 419.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008267/0.426, allocations: 158.7 kB / 419.8 MB, free: 11.08 MB / 334.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.0002904/0.4263, allocations: 133.2 kB / 419.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.4279, allocations: 0.6735 MB / 420.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4279, allocations: 0 / 420.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009132/0.4289, allocations: 461.7 kB / 421.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.4293, allocations: 42.8 kB / 421.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.431, allocations: 0.8027 MB / 421.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.4316, allocations: 0.8005 MB / 422.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003125/0.4319, allocations: 66.94 kB / 422.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.432, allocations: 35.42 kB / 422.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.432, allocations: 3.938 kB / 422.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of Templates: time 0.01631/0.4483, allocations: 8.329 MB / 431.1 MB, free: 404 kB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9103538785129786]