Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001086/0.001086, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001288/0.001288, allocations: 172.7 kB / 24.91 MB, free: 9.148 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9514/0.9514, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.066e-05/1.202e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00264/0.002652, allocations: 2.542 MB / 276 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001285/0.003937, allocations: 1.131 MB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.775e-05/0.004035, allocations: 7.938 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.004276, allocations: 59.44 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003553/0.004631, allocations: 194.7 kB / 277.4 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.004898, allocations: 183.5 kB / 277.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.005261, allocations: 0.5334 MB / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.005382, allocations: 63.08 kB / 278.1 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002922/0.005674, allocations: 319.3 kB / 278.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.005887, allocations: 227.5 kB / 278.7 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.005933, allocations: 44 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.006088, allocations: 135.8 kB / 278.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.156e-05/0.00618, allocations: 123.6 kB / 279 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.555e-05/0.006275, allocations: 147.7 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.006639, allocations: 438.5 kB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.006641, allocations: 0 / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006641, allocations: 4 kB / 279.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.006645, allocations: 0 / 279.5 MB, free: 11.17 MB / 266.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.0006779/0.007323, allocations: 0.6009 MB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.00735, allocations: 12.03 kB / 280.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.007572, allocations: 88.84 kB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.007828, allocations: 222 kB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.16e-05/0.00792, allocations: 140 kB / 280.6 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.007965, allocations: 40.31 kB / 280.6 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.008306, allocations: 337.9 kB / 281 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.008317, allocations: 4.188 kB / 281 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.00834, allocations: 16.12 kB / 281 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.008346, allocations: 8 kB / 281 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.008588, allocations: 195.2 kB / 281.2 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007762/0.009364, allocations: 0.579 MB / 281.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.009796, allocations: 194 kB / 282 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.009912, allocations: 102.3 kB / 282.1 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.009943, allocations: 8.5 kB / 282.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.009969, allocations: 39.06 kB / 282.1 MB, free: 8.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.683e-06/0.009971, allocations: 3.938 kB / 282.1 MB, free: 8.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.001898/0.01187, allocations: 1.286 MB / 283.4 MB, free: 7.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.0119, allocations: 85.61 kB / 283.5 MB, free: 7.039 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.01203, allocations: 213.1 kB / 283.7 MB, free: 6.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.01206, allocations: 33.7 kB / 283.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.01211, allocations: 133.1 kB / 283.8 MB, free: 6.641 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.846e-05/0.0122, allocations: 190.4 kB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/0.01229, allocations: 94.12 kB / 284.1 MB, free: 6.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.691e-05/0.01237, allocations: 346.7 kB / 284.5 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-05/0.01246, allocations: 63.8 kB / 284.5 MB, free: 5.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.01258, allocations: 141.6 kB / 284.7 MB, free: 5.789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.01279, allocations: 209.2 kB / 284.9 MB, free: 5.574 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.01279, allocations: 0 / 284.9 MB, free: 5.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003304/0.01312, allocations: 306.9 kB / 285.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.01313, allocations: 4 kB / 285.2 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.01313, allocations: 0 / 285.2 MB, free: 5.266 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003482/0.01348, allocations: 218.6 kB / 285.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.01363, allocations: 59.89 kB / 285.4 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.0152, allocations: 2.06 MB / 287.5 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.01531, allocations: 23.98 kB / 287.5 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.01534, allocations: 12 kB / 287.5 MB, free: 2.805 MB / 266.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.0001007/0.01544, allocations: 140.6 kB / 287.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.305e-05/0.0155, allocations: 31.97 kB / 287.7 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.271e-05/0.01556, allocations: 55.25 kB / 287.8 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.01557, allocations: 8.031 kB / 287.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01557, allocations: 0 / 287.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.01558, allocations: 3.984 kB / 287.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008936/0.01647, allocations: 0.6675 MB / 288.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01647, allocations: 0 / 288.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.01663, allocations: 63.89 kB / 288.5 MB, free: 1.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003176/0.01695, allocations: 212.1 kB / 288.7 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.01698, allocations: 23.91 kB / 288.7 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1146/0.1316, allocations: 2.009 MB / 290.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1316, allocations: 1.641 kB / 290.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000627/0.1322, allocations: 0.4983 MB / 291.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1323, allocations: 47.69 kB / 291.3 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.028e-05/0.1324, allocations: 16.08 kB / 291.3 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1325, allocations: 24.14 kB / 291.3 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1327, allocations: 71.06 kB / 291.4 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.1327, allocations: 19.11 kB / 291.4 MB, free: 23.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.206e-05/0.1328, allocations: 68.19 kB / 291.5 MB, free: 23.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1328, allocations: 0.8438 kB / 291.5 MB, free: 23.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005536/0.1333, allocations: 148.9 kB / 291.6 MB, free: 23.37 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.001005/0.1343, allocations: 480.7 kB / 292.1 MB, free: 23.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006081/0.1349, allocations: 467.2 kB / 292.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1349, allocations: 2.25 kB / 292.6 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003267/0.1353, allocations: 376.2 kB / 292.9 MB, free: 22.97 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.1355, allocations: 72.14 kB / 293 MB, free: 22.97 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009241/0.1364, allocations: 0.6766 MB / 293.7 MB, free: 22.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.686e-05/0.1365, allocations: 114.2 kB / 293.8 MB, free: 22.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.1366, allocations: 56.34 kB / 293.8 MB, free: 22.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.1368, allocations: 105.9 kB / 293.9 MB, free: 22.52 MB / 266.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1368, allocations: 1.188 kB / 293.9 MB, free: 22.52 MB / 266.7 MB Notification: Performance of Templates: time 0.01078/0.1475, allocations: 8.24 MB / 302.2 MB, free: 20.34 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.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.937227622140199]