Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001022/0.001022, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 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.0009531/0.0009531, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9625/0.9625, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 3.938 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.887e-05/2.055e-05, allocations: 10.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002658/0.002679, allocations: 2.458 MB / 270.4 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.003951, allocations: 0.9441 MB / 271.4 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.004054, allocations: 4 kB / 271.4 MB, free: 3.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.004252, allocations: 51.52 kB / 271.4 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.004688, allocations: 166.9 kB / 271.6 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.004905, allocations: 175.6 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003374/0.005242, allocations: 498.2 kB / 272.3 MB, free: 2.156 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.005378, allocations: 61.06 kB / 272.3 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/0.005636, allocations: 279.5 kB / 272.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.005853, allocations: 219.5 kB / 272.8 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.0059, allocations: 36 kB / 272.8 MB, free: 1.566 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.006053, allocations: 123.9 kB / 273 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.006159, allocations: 103.7 kB / 273.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.006263, allocations: 139.6 kB / 273.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.006643, allocations: 398.8 kB / 273.6 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.006646, allocations: 4 kB / 273.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006647, allocations: 0 / 273.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.309e-06/0.006652, allocations: 0 / 273.6 MB, free: 0.8125 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.0008603/0.007512, allocations: 0.6907 MB / 274.3 MB, free: 88 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.007553, allocations: 12.92 kB / 274.3 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002559/0.007809, allocations: 84.72 kB / 274.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.008143, allocations: 272.5 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.479e-05/0.008238, allocations: 144 kB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/0.008285, allocations: 36.33 kB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.008715, allocations: 352.9 kB / 275.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.008726, allocations: 192 / 275.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.008754, allocations: 20.12 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.008763, allocations: 8 kB / 275.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003524/0.009116, allocations: 271.6 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000965/0.01008, allocations: 0.7604 MB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.0105, allocations: 273.7 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.01069, allocations: 137.1 kB / 276.6 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.01072, allocations: 8.5 kB / 276.6 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.01075, allocations: 41.89 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.483e-06/0.01075, allocations: 0 / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002457/0.01321, allocations: 1.531 MB / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.01324, allocations: 89.53 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.01342, allocations: 277.5 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.01345, allocations: 41.7 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.449e-05/0.01352, allocations: 191.8 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/0.01362, allocations: 178.5 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.01372, allocations: 103.8 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.01385, allocations: 0.5079 MB / 279.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.01401, allocations: 104.9 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.01421, allocations: 190.2 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.01453, allocations: 253.3 kB / 280.1 MB, free: 9.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01453, allocations: 0 / 280.1 MB, free: 9.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005423/0.01507, allocations: 441.8 kB / 280.5 MB, free: 9.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.01509, allocations: 4 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01509, allocations: 0 / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004228/0.01551, allocations: 225.4 kB / 280.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.01567, allocations: 59.95 kB / 280.8 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/0.01792, allocations: 2.904 MB / 283.7 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.01803, allocations: 23.98 kB / 283.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.01806, allocations: 16 kB / 283.8 MB, free: 6.176 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.000115/0.01818, allocations: 184.2 kB / 283.9 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.01824, allocations: 51.8 kB / 284 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.58e-05/0.01828, allocations: 47.31 kB / 284 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.01829, allocations: 4 kB / 284 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.01829, allocations: 7.938 kB / 284 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.0183, allocations: 3.984 kB / 284.1 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.01936, allocations: 0.9714 MB / 285 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.01936, allocations: 4.031 kB / 285 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.01953, allocations: 59.89 kB / 285.1 MB, free: 4.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/0.01985, allocations: 211.4 kB / 285.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.01988, allocations: 11.98 kB / 285.3 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.0219, allocations: 2.857 MB / 288.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.0219, allocations: 4 kB / 288.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000779/0.02268, allocations: 0.7129 MB / 288.9 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.51e-05/0.02277, allocations: 71.75 kB / 288.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.0228, allocations: 12 kB / 289 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.02293, allocations: 15.98 kB / 289 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.02304, allocations: 72.36 kB / 289 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.02306, allocations: 24.05 kB / 289.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001013/0.02316, allocations: 199.9 kB / 289.3 MB, free: 484 kB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02316, allocations: 0 / 289.3 MB, free: 484 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003541/0.02351, allocations: 159.9 kB / 289.4 MB, free: 324 kB / 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.0001665/0.02368, allocations: 147.1 kB / 289.6 MB, free: 164 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.09436/0.118, allocations: 0.5867 MB / 290.1 MB, free: 29.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.118, allocations: 0 / 290.1 MB, free: 29.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005016/0.1185, allocations: 476.4 kB / 290.6 MB, free: 29.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.1189, allocations: 60.92 kB / 290.7 MB, free: 29.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.12, allocations: 0.687 MB / 291.4 MB, free: 29.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.099e-05/0.12, allocations: 114.7 kB / 291.5 MB, free: 29.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.1202, allocations: 58.3 kB / 291.5 MB, free: 29.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.1203, allocations: 33.62 kB / 291.6 MB, free: 29.12 MB / 266.7 MB Notification: Performance of SimCode: time 1.253e-06/0.1203, allocations: 1.875 kB / 291.6 MB, free: 29.12 MB / 266.7 MB Notification: Performance of Templates: time 0.009562/0.1298, allocations: 7.218 MB / 298.8 MB, free: 27.66 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.127455747220665]