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.001183/0.001183, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001266/0.001266, allocations: 165.2 kB / 25.6 MB, free: 8.914 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.9895/0.9895, allocations: 158.6 MB / 187.5 MB, free: 2.801 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: 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: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/2.036e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002702/0.002723, allocations: 2.343 MB / 253.8 MB, free: 4.902 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.004143, allocations: 0.9333 MB / 254.7 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.004255, allocations: 11.94 kB / 254.7 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.004442, allocations: 55.45 kB / 254.8 MB, free: 3.887 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003682/0.004811, allocations: 131.2 kB / 254.9 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.005068, allocations: 179.6 kB / 255.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.005392, allocations: 430.5 kB / 255.5 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.005496, allocations: 44.91 kB / 255.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.005797, allocations: 255.4 kB / 255.8 MB, free: 2.867 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.006104, allocations: 191.5 kB / 256 MB, free: 2.676 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.055e-05/0.006164, allocations: 32 kB / 256 MB, free: 2.645 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/0.006396, allocations: 115.9 kB / 256.1 MB, free: 2.531 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.006508, allocations: 99.69 kB / 256.2 MB, free: 2.434 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.299e-05/0.006601, allocations: 119.7 kB / 256.4 MB, free: 2.316 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.007063, allocations: 374.8 kB / 256.7 MB, free: 1.949 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.007065, allocations: 0 / 256.7 MB, free: 1.949 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.007066, allocations: 0 / 256.7 MB, free: 1.949 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.00707, allocations: 0 / 256.7 MB, free: 1.949 MB / 234.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.0008947/0.007965, allocations: 0.6479 MB / 257.4 MB, free: 1.266 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.007997, allocations: 15.98 kB / 257.4 MB, free: 1.25 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.00819, allocations: 80.72 kB / 257.5 MB, free: 1.172 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.008499, allocations: 236.8 kB / 257.7 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.008619, allocations: 140 kB / 257.8 MB, free: 0.75 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.008673, allocations: 28.38 kB / 257.9 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.009111, allocations: 316.2 kB / 258.2 MB, free: 392 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.009127, allocations: 4.172 kB / 258.2 MB, free: 388 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.009161, allocations: 16.12 kB / 258.2 MB, free: 372 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.00917, allocations: 8 kB / 258.2 MB, free: 364 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003695/0.00954, allocations: 196.3 kB / 258.4 MB, free: 168 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.0108, allocations: 1.085 MB / 259.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.01104, allocations: 202.9 kB / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.01114, allocations: 88.34 kB / 259.8 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.01117, allocations: 12 kB / 259.8 MB, free: 14.72 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.01119, allocations: 41.34 kB / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.343e-06/0.01119, allocations: 0 / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.001859/0.01305, allocations: 1.195 MB / 261 MB, free: 13.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.01309, allocations: 92.86 kB / 261.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.01325, allocations: 261.6 kB / 261.4 MB, free: 13.03 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.01327, allocations: 33.7 kB / 261.4 MB, free: 12.99 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.01335, allocations: 183.5 kB / 261.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/0.01342, allocations: 154.7 kB / 261.7 MB, free: 12.65 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/0.01351, allocations: 95.73 kB / 261.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.01363, allocations: 0.5118 MB / 262.3 MB, free: 12.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.01372, allocations: 76.88 kB / 262.4 MB, free: 11.95 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.01386, allocations: 173.2 kB / 262.6 MB, free: 11.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.01406, allocations: 206.3 kB / 262.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.01406, allocations: 3.938 kB / 262.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003858/0.01444, allocations: 365 kB / 263.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.01446, allocations: 4 kB / 263.1 MB, free: 11.15 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.01446, allocations: 0 / 263.1 MB, free: 11.15 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003356/0.0148, allocations: 215.4 kB / 263.3 MB, free: 10.94 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.01491, allocations: 55.91 kB / 263.4 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.01678, allocations: 2.776 MB / 266.2 MB, free: 7.992 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.01688, allocations: 19.98 kB / 266.2 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.01691, allocations: 16 kB / 266.2 MB, free: 7.957 MB / 250.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 9.876e-05/0.01701, allocations: 176.6 kB / 266.4 MB, free: 7.773 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.456e-05/0.01707, allocations: 47.81 kB / 266.4 MB, free: 7.727 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.047e-05/0.01711, allocations: 42.98 kB / 266.5 MB, free: 7.688 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.01711, allocations: 11.88 kB / 266.5 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-06/0.01712, allocations: 0 / 266.5 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01712, allocations: 3.984 kB / 266.5 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007509/0.01787, allocations: 0.7371 MB / 267.2 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01787, allocations: 0 / 267.2 MB, free: 6.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.01798, allocations: 47.91 kB / 267.3 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003322/0.01832, allocations: 199.4 kB / 267.5 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.01834, allocations: 15.98 kB / 267.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/0.02024, allocations: 2.774 MB / 270.3 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.02025, allocations: 3.984 kB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005141/0.02076, allocations: 0.5654 MB / 270.8 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.8e-05/0.02084, allocations: 55.77 kB / 270.9 MB, free: 3.105 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.02087, allocations: 15.94 kB / 270.9 MB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.02098, allocations: 15.98 kB / 270.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.02109, allocations: 67.81 kB / 271 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.02111, allocations: 11.98 kB / 271 MB, free: 2.996 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.352e-05/0.02119, allocations: 188 kB / 271.2 MB, free: 2.812 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02119, allocations: 4 kB / 271.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003429/0.02154, allocations: 144 kB / 271.3 MB, free: 2.668 MB / 250.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.0001549/0.02169, allocations: 135.2 kB / 271.4 MB, free: 2.523 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006254/0.02232, allocations: 0.5033 MB / 271.9 MB, free: 2 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.02232, allocations: 4.062 kB / 272 MB, free: 1.996 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003495/0.02267, allocations: 420.5 kB / 272.4 MB, free: 1.562 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.02293, allocations: 63.8 kB / 272.4 MB, free: 1.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008999/0.02383, allocations: 0.5699 MB / 273 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.876e-05/0.0239, allocations: 109.1 kB / 273.1 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.253e-05/0.02399, allocations: 42.95 kB / 273.1 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.0241, allocations: 114.2 kB / 273.3 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.0241, allocations: 0 / 273.3 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of Templates: time 0.008732/0.03284, allocations: 7.195 MB / 280.5 MB, free: 9.453 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9218958229757845]