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.00149/0.00149, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.001871/0.001871, allocations: 214.7 kB / 24.47 MB, free: 3.777 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.565/1.565, allocations: 207.7 MB / 235.3 MB, free: 9.797 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.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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 55.91 kB / 347.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3439, allocations: 49.15 MB / 396.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003998/0.3479, allocations: 2.213 MB / 399.1 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.3499, allocations: 0.9418 MB / 400 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.3501, allocations: 7.188 kB / 400 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.3503, allocations: 44.48 kB / 400 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005849/0.3509, allocations: 131.8 kB / 400.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.3513, allocations: 176.9 kB / 400.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005345/0.3518, allocations: 414.3 kB / 400.7 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.352, allocations: 52.69 kB / 400.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003161/0.3524, allocations: 187.2 kB / 401 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003847/0.3527, allocations: 207.6 kB / 401.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.3528, allocations: 33.03 kB / 401.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.3531, allocations: 115.7 kB / 401.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.3533, allocations: 97.31 kB / 401.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.3534, allocations: 149 kB / 401.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006514/0.3541, allocations: 449.9 kB / 402 MB, free: 6.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3541, allocations: 3.938 kB / 402 MB, free: 6.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3541, allocations: 1.438 kB / 402 MB, free: 6.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.3541, allocations: 0 / 402 MB, free: 6.395 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001272/0.3554, allocations: 0.567 MB / 402.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3554, allocations: 13.05 kB / 402.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004004/0.3558, allocations: 50.69 kB / 402.6 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005345/0.3564, allocations: 253.5 kB / 402.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.3565, allocations: 145 kB / 403 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.613e-05/0.3566, allocations: 26.88 kB / 403.1 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008111/0.3574, allocations: 407 kB / 403.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.3574, allocations: 9.094 kB / 403.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.3575, allocations: 10.16 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3575, allocations: 7.297 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.3585, allocations: 411.7 kB / 403.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.3608, allocations: 1.059 MB / 404.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.3616, allocations: 334.9 kB / 405.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.362, allocations: 164.2 kB / 405.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.362, allocations: 4.844 kB / 405.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.362, allocations: 43.38 kB / 405.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.154e-06/0.362, allocations: 0 / 405.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.005124/0.3672, allocations: 1.681 MB / 407.2 MB, free: 3.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.3672, allocations: 89.39 kB / 407.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.3676, allocations: 246.7 kB / 407.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.3676, allocations: 37.08 kB / 407.5 MB, free: 3.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.3677, allocations: 137.6 kB / 407.7 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.3678, allocations: 158.4 kB / 407.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.368, allocations: 85.11 kB / 407.9 MB, free: 3.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.3681, allocations: 336.8 kB / 408.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004021/0.3685, allocations: 166.6 kB / 408.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004691/0.369, allocations: 257 kB / 408.6 MB, free: 2.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008017/0.3698, allocations: 341.4 kB / 409 MB, free: 2.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3698, allocations: 4.031 kB / 409 MB, free: 2.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001254/0.371, allocations: 0.5461 MB / 409.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.371, allocations: 5.812 kB / 409.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.371, allocations: 2.125 kB / 409.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008619/0.3719, allocations: 254.5 kB / 409.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002716/0.3722, allocations: 50.84 kB / 409.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/0.3759, allocations: 2.714 MB / 412.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.3762, allocations: 32.28 kB / 412.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.3763, allocations: 11.84 kB / 412.6 MB, free: 15.91 MB / 334.1 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.0002397/0.3765, allocations: 160.6 kB / 412.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.3766, allocations: 24.2 kB / 412.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.113e-05/0.3767, allocations: 44.28 kB / 412.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3767, allocations: 4.594 kB / 412.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.3767, allocations: 4 kB / 412.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3767, allocations: 3.984 kB / 412.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.3787, allocations: 0.9534 MB / 413.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3787, allocations: 4 kB / 413.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.379, allocations: 43.19 kB / 413.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007083/0.3797, allocations: 239.9 kB / 414.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.3797, allocations: 14.17 kB / 414.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.384, allocations: 2.662 MB / 416.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.384, allocations: 1 kB / 416.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.3857, allocations: 0.8229 MB / 417.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.3858, allocations: 58.69 kB / 417.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.724e-05/0.3859, allocations: 14.73 kB / 417.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.3861, allocations: 18.98 kB / 417.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.3863, allocations: 64.31 kB / 417.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.61e-05/0.3863, allocations: 20.17 kB / 417.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002419/0.3866, allocations: 179.4 kB / 417.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3866, allocations: 4.062 kB / 417.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007106/0.3873, allocations: 137.4 kB / 418 MB, free: 12.07 MB / 334.1 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.0002656/0.3876, allocations: 133.6 kB / 418.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001451/0.389, allocations: 0.6055 MB / 418.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.389, allocations: 0 / 418.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007817/0.3898, allocations: 415 kB / 419.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.3902, allocations: 45.36 kB / 419.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.3918, allocations: 0.6962 MB / 419.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.392, allocations: 178.5 kB / 420.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001891/0.3922, allocations: 58.84 kB / 420.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.08e-05/0.3923, allocations: 29.77 kB / 420.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3923, allocations: 0 / 420.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of Templates: time 0.01397/0.4062, allocations: 6.782 MB / 427 MB, free: 4.395 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.181912858039141]