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.001018/0.001018, 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.0008719/0.0008719, allocations: 145.1 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.935/0.935, allocations: 173.4 MB / 201.1 MB, free: 9.359 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 2.455e-06/2.455e-06, allocations: 0 / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.613e-05/3.858e-05, allocations: 2.312 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004755/0.004794, allocations: 2.376 MB / 270.4 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.006874, allocations: 0.8934 MB / 271.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.007069, allocations: 7.938 kB / 271.3 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.00732, allocations: 47.64 kB / 271.3 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006212/0.007942, allocations: 143.1 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.008395, allocations: 171.6 kB / 271.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000566/0.008961, allocations: 434.5 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.009137, allocations: 44.91 kB / 272.1 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004332/0.00957, allocations: 251.5 kB / 272.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003659/0.009936, allocations: 191.5 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.678e-05/0.01001, allocations: 32 kB / 272.5 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.01027, allocations: 115.9 kB / 272.7 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.01041, allocations: 99.69 kB / 272.8 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.01055, allocations: 119.7 kB / 272.9 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005984/0.01115, allocations: 370.8 kB / 273.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.01115, allocations: 4 kB / 273.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.01115, allocations: 0 / 273.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.01116, allocations: 0 / 273.2 MB, free: 1.191 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.001101/0.01226, allocations: 0.6519 MB / 273.9 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.01231, allocations: 12.92 kB / 273.9 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003254/0.01263, allocations: 72.73 kB / 274 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.01309, allocations: 264.7 kB / 274.2 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.01325, allocations: 140 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.116e-05/0.01331, allocations: 32.33 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006079/0.01391, allocations: 344.2 kB / 274.7 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.01393, allocations: 192 / 274.7 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.01397, allocations: 20.12 kB / 274.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.01398, allocations: 4 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004972/0.01448, allocations: 251.7 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001391/0.01587, allocations: 1.12 MB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.01622, allocations: 249.8 kB / 276.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.01655, allocations: 120.3 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.01658, allocations: 4 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.01661, allocations: 45.34 kB / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.493e-06/0.01661, allocations: 0 / 276.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002359/0.01897, allocations: 1.372 MB / 277.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.01902, allocations: 92.8 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.0192, allocations: 273.6 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.01923, allocations: 33.7 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.0193, allocations: 179.6 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.404e-05/0.01939, allocations: 166.8 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.549e-05/0.01948, allocations: 83.84 kB / 278.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.01961, allocations: 0.5118 MB / 279.2 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.01976, allocations: 92.94 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.01995, allocations: 201.2 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.02022, allocations: 246.3 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.02023, allocations: 4.031 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005366/0.02076, allocations: 417 kB / 280.2 MB, free: 9.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.02078, allocations: 11.94 kB / 280.2 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.02079, allocations: 0 / 280.2 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004341/0.02122, allocations: 219.5 kB / 280.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.02137, allocations: 47.91 kB / 280.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.02364, allocations: 2.874 MB / 283.3 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.02375, allocations: 15.98 kB / 283.3 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.02378, allocations: 24.03 kB / 283.4 MB, free: 6.555 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.0001119/0.02389, allocations: 168.6 kB / 283.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.02396, allocations: 47.8 kB / 283.6 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001936/0.02415, allocations: 42.98 kB / 283.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.02415, allocations: 7.938 kB / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.02415, allocations: 0 / 283.6 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.02416, allocations: 7.922 kB / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009494/0.02511, allocations: 0.8383 MB / 284.5 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.02511, allocations: 0 / 284.5 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.02524, allocations: 47.91 kB / 284.5 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003569/0.02559, allocations: 199.5 kB / 284.7 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.02562, allocations: 8 kB / 284.7 MB, free: 5.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002099/0.02771, allocations: 2.867 MB / 287.6 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.02772, allocations: 0 / 287.6 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006671/0.02838, allocations: 0.6355 MB / 288.2 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.02847, allocations: 55.81 kB / 288.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.0285, allocations: 12 kB / 288.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.02861, allocations: 15.98 kB / 288.3 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.02872, allocations: 67.94 kB / 288.4 MB, free: 1.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.02874, allocations: 15.98 kB / 288.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001038/0.02885, allocations: 200.1 kB / 288.6 MB, free: 1.129 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02885, allocations: 0 / 288.6 MB, free: 1.129 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003976/0.02924, allocations: 139.9 kB / 288.7 MB, free: 0.9922 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.0002049/0.02945, allocations: 143.1 kB / 288.8 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006863/0.03014, allocations: 0.5665 MB / 289.4 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.03014, allocations: 0 / 289.4 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1158/0.146, allocations: 428 kB / 289.8 MB, free: 29.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.1464, allocations: 50.84 kB / 289.9 MB, free: 29.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.1477, allocations: 0.5964 MB / 290.5 MB, free: 28.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.1478, allocations: 110.6 kB / 290.6 MB, free: 28.76 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.1479, allocations: 50.02 kB / 290.6 MB, free: 28.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.411e-05/0.148, allocations: 35.89 kB / 290.7 MB, free: 28.76 MB / 266.7 MB Notification: Performance of SimCode: time 1.192e-06/0.148, allocations: 0 / 290.7 MB, free: 28.76 MB / 266.7 MB Notification: Performance of Templates: time 0.01034/0.1584, allocations: 6.694 MB / 297.4 MB, free: 27.63 MB / 266.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: 3.1656556045636535]