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.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.002032/0.002032, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.002395/0.002395, allocations: 167.3 kB / 25.02 MB, free: 8.418 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 1.38/1.38, allocations: 158.6 MB / 186.8 MB, free: 2.883 MB / 170.7 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.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: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 250.3 MB, free: 3.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.626e-05/3.787e-05, allocations: 5.406 kB / 250.4 MB, free: 3.949 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004454/0.004492, allocations: 2.295 MB / 252.6 MB, free: 1.637 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.006684, allocations: 0.9721 MB / 253.6 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.006868, allocations: 7.938 kB / 253.6 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.007129, allocations: 55.52 kB / 253.7 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006387/0.007767, allocations: 162.9 kB / 253.8 MB, free: 436 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.008202, allocations: 179.6 kB / 254 MB, free: 256 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006366/0.008839, allocations: 482.3 kB / 254.5 MB, free: 15.78 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.009024, allocations: 61.12 kB / 254.5 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004558/0.00948, allocations: 295.3 kB / 254.8 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/0.009823, allocations: 211.5 kB / 255 MB, free: 15.22 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.846e-05/0.009902, allocations: 40 kB / 255.1 MB, free: 15.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.01015, allocations: 119.9 kB / 255.2 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.01033, allocations: 111.6 kB / 255.3 MB, free: 14.96 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.01051, allocations: 127.7 kB / 255.4 MB, free: 14.83 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007636/0.01127, allocations: 0.5413 MB / 256 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.01128, allocations: 0 / 256 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.01128, allocations: 0 / 256 MB, free: 14.29 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.01128, allocations: 4 kB / 256 MB, free: 14.29 MB / 250.7 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.001462/0.01275, allocations: 0.5948 MB / 256.6 MB, free: 13.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.01279, allocations: 11.98 kB / 256.6 MB, free: 13.65 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004014/0.01319, allocations: 84.69 kB / 256.7 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006248/0.01382, allocations: 269 kB / 256.9 MB, free: 13.28 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.01402, allocations: 144 kB / 257.1 MB, free: 13.11 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.101e-05/0.0141, allocations: 32.38 kB / 257.1 MB, free: 13.08 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009518/0.01505, allocations: 439.1 kB / 257.5 MB, free: 12.63 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.01507, allocations: 192 / 257.5 MB, free: 12.63 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.172e-05/0.01512, allocations: 20.12 kB / 257.5 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.01513, allocations: 8 kB / 257.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.01649, allocations: 462.3 kB / 258 MB, free: 12.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.01836, allocations: 0.7922 MB / 258.8 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000945/0.01931, allocations: 381.4 kB / 259.2 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.01983, allocations: 210.1 kB / 259.4 MB, free: 10.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.01987, allocations: 16.5 kB / 259.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.01991, allocations: 35.06 kB / 259.4 MB, free: 10.69 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.01991, allocations: 0 / 259.4 MB, free: 10.69 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.005949/0.02586, allocations: 1.945 MB / 261.4 MB, free: 8.688 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.554e-05/0.02595, allocations: 85.61 kB / 261.5 MB, free: 8.586 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.02632, allocations: 246.4 kB / 261.7 MB, free: 8.332 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.02637, allocations: 33.7 kB / 261.7 MB, free: 8.293 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.0265, allocations: 141.2 kB / 261.9 MB, free: 8.152 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.0267, allocations: 194.3 kB / 262.1 MB, free: 7.961 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.02688, allocations: 90.19 kB / 262.1 MB, free: 7.867 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.0271, allocations: 342.8 kB / 262.5 MB, free: 7.523 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004975/0.0276, allocations: 192.8 kB / 262.7 MB, free: 7.336 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005757/0.02817, allocations: 273.6 kB / 262.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009603/0.02913, allocations: 391.6 kB / 263.3 MB, free: 6.664 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.02914, allocations: 4 kB / 263.3 MB, free: 6.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001509/0.03065, allocations: 0.6238 MB / 263.9 MB, free: 6.031 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.03067, allocations: 8 kB / 264 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.03068, allocations: 0 / 264 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000869/0.03155, allocations: 249.9 kB / 264.2 MB, free: 5.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.03189, allocations: 67.88 kB / 264.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004972/0.03686, allocations: 2.79 MB / 267.1 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.03724, allocations: 27.97 kB / 267.1 MB, free: 2.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.0373, allocations: 19.98 kB / 267.1 MB, free: 2.77 MB / 250.7 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.0002466/0.03754, allocations: 153.8 kB / 267.3 MB, free: 2.609 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.03767, allocations: 51.81 kB / 267.3 MB, free: 2.559 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.0378, allocations: 51.36 kB / 267.4 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.0378, allocations: 7.938 kB / 267.4 MB, free: 2.496 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.03781, allocations: 3.938 kB / 267.4 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.03782, allocations: 3.984 kB / 267.4 MB, free: 2.488 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.04032, allocations: 1.111 MB / 268.5 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.04032, allocations: 0 / 268.5 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003569/0.04068, allocations: 75.91 kB / 268.6 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007707/0.04145, allocations: 240.6 kB / 268.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/0.0415, allocations: 12 kB / 268.8 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004622/0.04612, allocations: 2.693 MB / 271.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.04612, allocations: 4.031 kB / 271.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.04858, allocations: 0.9606 MB / 272.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.04878, allocations: 67.78 kB / 272.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.04885, allocations: 12 kB / 272.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.04917, allocations: 27.97 kB / 272.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.04939, allocations: 72.36 kB / 272.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.04944, allocations: 15.98 kB / 272.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.0497, allocations: 188.3 kB / 272.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0497, allocations: 0 / 272.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007011/0.05041, allocations: 151.9 kB / 273 MB, free: 12.71 MB / 266.7 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.0003125/0.05072, allocations: 151 kB / 273.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.05242, allocations: 0.6784 MB / 273.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.05242, allocations: 0 / 273.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009538/0.05337, allocations: 468.1 kB / 274.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005156/0.05389, allocations: 63.78 kB / 274.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.05566, allocations: 0.7485 MB / 275.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.05594, allocations: 194.8 kB / 275.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002108/0.05615, allocations: 58.94 kB / 275.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.05627, allocations: 32.48 kB / 275.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of SimCode: time 1.352e-06/0.05627, allocations: 4 kB / 275.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01531/0.07158, allocations: 7.08 MB / 282.4 MB, free: 3.195 MB / 266.7 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.712987910956144]