Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0009522/0.0009522, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009699/0.0009699, allocations: 142 kB / 25.59 MB, free: 8.609 MB / 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.921/0.921, allocations: 173.4 MB / 202.3 MB, free: 8.293 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.185e-05/2.32e-05, allocations: 5.344 kB / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.006266/0.006289, allocations: 2.348 MB / 271.5 MB, free: 7.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004389/0.01068, allocations: 0.8997 MB / 272.4 MB, free: 6.543 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001502/0.01083, allocations: 4 kB / 272.4 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.01103, allocations: 47.58 kB / 272.5 MB, free: 6.492 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004599/0.01149, allocations: 132 kB / 272.6 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.0118, allocations: 186.4 kB / 272.8 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.0122, allocations: 430.6 kB / 273.2 MB, free: 5.762 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.01233, allocations: 48.91 kB / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.01259, allocations: 252.1 kB / 273.5 MB, free: 5.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.01284, allocations: 188.1 kB / 273.7 MB, free: 5.281 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.01289, allocations: 32.69 kB / 273.7 MB, free: 5.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.01307, allocations: 121.8 kB / 273.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.01318, allocations: 99.69 kB / 273.9 MB, free: 5.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003122/0.01631, allocations: 119.7 kB / 274.1 MB, free: 4.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004587/0.01676, allocations: 366.9 kB / 274.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.01677, allocations: 0 / 274.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01677, allocations: 0 / 274.4 MB, free: 4.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.01677, allocations: 0.5 kB / 274.4 MB, free: 4.559 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008934/0.01767, allocations: 0.6595 MB / 275.1 MB, free: 3.863 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.0177, allocations: 8.031 kB / 275.1 MB, free: 3.855 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002721/0.01798, allocations: 80.72 kB / 275.2 MB, free: 3.777 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.01832, allocations: 236.8 kB / 275.4 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.01843, allocations: 140 kB / 275.5 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.01848, allocations: 28.33 kB / 275.6 MB, free: 3.328 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004183/0.0189, allocations: 316.2 kB / 275.9 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.01891, allocations: 4.188 kB / 275.9 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.01894, allocations: 12.12 kB / 275.9 MB, free: 2.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.01895, allocations: 8 kB / 275.9 MB, free: 2.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003329/0.02228, allocations: 204.3 kB / 276.1 MB, free: 2.773 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.02398, allocations: 1.078 MB / 277.2 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.0243, allocations: 198.9 kB / 277.4 MB, free: 1.445 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.02445, allocations: 95.58 kB / 277.5 MB, free: 1.348 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.02448, allocations: 12.66 kB / 277.5 MB, free: 1.336 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.0245, allocations: 37.39 kB / 277.5 MB, free: 1.289 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.0245, allocations: 4 kB / 277.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.005568/0.03007, allocations: 1.203 MB / 278.7 MB, free: 16 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.03013, allocations: 88.86 kB / 278.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.03031, allocations: 270.3 kB / 279.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.03035, allocations: 33.7 kB / 279.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.07e-05/0.03044, allocations: 187.6 kB / 279.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.899e-05/0.03054, allocations: 158.6 kB / 279.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.03065, allocations: 87.8 kB / 279.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.0308, allocations: 0.5079 MB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.03093, allocations: 72.94 kB / 280.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.03111, allocations: 173.2 kB / 280.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.03138, allocations: 206.3 kB / 280.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.03138, allocations: 0 / 280.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005416/0.03192, allocations: 369 kB / 280.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.03194, allocations: 4 kB / 280.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.03195, allocations: 0 / 280.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004557/0.03241, allocations: 209.5 kB / 281 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.03257, allocations: 55.91 kB / 281.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.03489, allocations: 2.787 MB / 283.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.03501, allocations: 19.98 kB / 283.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.03504, allocations: 12 kB / 283.9 MB, free: 10.57 MB / 266.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 0.0001244/0.03516, allocations: 184 kB / 284.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/0.03547, allocations: 35.86 kB / 284.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.03552, allocations: 46.98 kB / 284.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.03552, allocations: 11.94 kB / 284.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.03552, allocations: 0 / 284.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.03553, allocations: 3.984 kB / 284.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007972/0.03632, allocations: 0.7567 MB / 284.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.03633, allocations: 0 / 284.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.03645, allocations: 47.97 kB / 285 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003167/0.03676, allocations: 192.5 kB / 285.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.03678, allocations: 11.98 kB / 285.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001898/0.03868, allocations: 2.765 MB / 287.9 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.03868, allocations: 32 / 287.9 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005523/0.03923, allocations: 0.5652 MB / 288.5 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.03932, allocations: 59.8 kB / 288.6 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.03935, allocations: 15.94 kB / 288.6 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.03946, allocations: 15.98 kB / 288.6 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.03957, allocations: 59.88 kB / 288.7 MB, free: 5.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.03959, allocations: 15.98 kB / 288.7 MB, free: 5.613 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.254e-05/0.03969, allocations: 168.3 kB / 288.8 MB, free: 5.449 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03969, allocations: 4.031 kB / 288.8 MB, free: 5.445 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000422/0.04011, allocations: 147.9 kB / 289 MB, free: 5.301 MB / 266.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.0001803/0.04029, allocations: 139.1 kB / 289.1 MB, free: 5.156 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005507/0.04084, allocations: 0.5119 MB / 289.6 MB, free: 4.625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.04084, allocations: 0 / 289.6 MB, free: 4.625 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003294/0.04117, allocations: 420.3 kB / 290 MB, free: 4.191 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.04144, allocations: 59.89 kB / 290.1 MB, free: 4.133 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008746/0.04231, allocations: 0.5855 MB / 290.7 MB, free: 3.516 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.895e-05/0.04238, allocations: 101.3 kB / 290.8 MB, free: 3.398 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.04248, allocations: 42.97 kB / 290.8 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.04261, allocations: 110.2 kB / 290.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.04261, allocations: 0 / 290.9 MB, free: 3.25 MB / 266.7 MB Notification: Performance of Templates: time 0.009236/0.05185, allocations: 7.323 MB / 298.3 MB, free: 11.98 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.951848682947457]