Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001487/0.001487, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001719/0.001719, allocations: 161 kB / 24.56 MB, free: 4 kB / 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 1.001/1.001, allocations: 177.1 MB / 205 MB, free: 5.629 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.352e-05/2.479e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003814/0.003839, allocations: 2.481 MB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.005458, allocations: 1.03 MB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.005603, allocations: 4 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.005894, allocations: 67.38 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004425/0.006336, allocations: 155.3 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.006715, allocations: 171.6 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.007199, allocations: 482.5 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.007339, allocations: 48.89 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.007671, allocations: 271.5 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.007957, allocations: 215.5 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.193e-05/0.008019, allocations: 40 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002311/0.00825, allocations: 119.9 kB / 278 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.008368, allocations: 107.7 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.008493, allocations: 131.7 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.00902, allocations: 414.5 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.009024, allocations: 4 kB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.009025, allocations: 0 / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.009032, allocations: 0 / 278.7 MB, free: 11.85 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009984/0.01003, allocations: 0.6906 MB / 279.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.01007, allocations: 8.031 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.01037, allocations: 76.73 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.01076, allocations: 261.5 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.01089, allocations: 140 kB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.01094, allocations: 24.38 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.01148, allocations: 348.2 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.0115, allocations: 8.141 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.01153, allocations: 16.12 kB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.01155, allocations: 12 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004415/0.01199, allocations: 243.6 kB / 280.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.01355, allocations: 1.128 MB / 281.6 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.01399, allocations: 238.5 kB / 281.8 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.01418, allocations: 103.6 kB / 281.9 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.01421, allocations: 8 kB / 281.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.01423, allocations: 41.39 kB / 282 MB, free: 8.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.814e-06/0.01423, allocations: 0 / 282 MB, free: 8.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.003173/0.01741, allocations: 1.348 MB / 283.3 MB, free: 6.922 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.01745, allocations: 92.8 kB / 283.4 MB, free: 6.812 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.01767, allocations: 257.6 kB / 283.7 MB, free: 6.543 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.0177, allocations: 41.69 kB / 283.7 MB, free: 6.496 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.816e-05/0.01779, allocations: 187.5 kB / 283.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.01789, allocations: 154.9 kB / 284 MB, free: 6.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.01802, allocations: 91.83 kB / 284.1 MB, free: 6.055 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.01815, allocations: 0.504 MB / 284.6 MB, free: 5.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.01834, allocations: 96.88 kB / 284.7 MB, free: 5.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.01857, allocations: 193.2 kB / 284.9 MB, free: 5.223 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003568/0.01893, allocations: 238.2 kB / 285.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.01893, allocations: 0 / 285.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006935/0.01963, allocations: 409 kB / 285.5 MB, free: 4.559 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.01964, allocations: 11.92 kB / 285.6 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.01965, allocations: 4 kB / 285.6 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.0202, allocations: 232.2 kB / 285.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.02038, allocations: 59.89 kB / 285.8 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.02314, allocations: 2.876 MB / 288.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.02329, allocations: 19.98 kB / 288.7 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/0.02333, allocations: 16 kB / 288.8 MB, free: 1.223 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.000132/0.02346, allocations: 180.5 kB / 288.9 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.96e-05/0.02355, allocations: 51.78 kB / 289 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.28e-05/0.02361, allocations: 39 kB / 289 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.02361, allocations: 7.984 kB / 289 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.02361, allocations: 0 / 289 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.02362, allocations: 3.984 kB / 289 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001439/0.02506, allocations: 0.8496 MB / 289.9 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.02506, allocations: 4 kB / 289.9 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.02524, allocations: 47.95 kB / 289.9 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004539/0.02569, allocations: 219.5 kB / 290.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.02572, allocations: 11.98 kB / 290.2 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.02831, allocations: 2.859 MB / 293 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.02831, allocations: 0 / 293 MB, free: 12.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008958/0.02921, allocations: 0.6312 MB / 293.6 MB, free: 12.13 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.02933, allocations: 71.73 kB / 293.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.669e-05/0.02937, allocations: 15.98 kB / 293.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.02953, allocations: 12 kB / 293.7 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.02968, allocations: 63.86 kB / 293.8 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.02971, allocations: 19.98 kB / 293.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001343/0.02984, allocations: 187.1 kB / 294 MB, free: 11.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02984, allocations: 32 / 294 MB, free: 11.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005608/0.0304, allocations: 139.9 kB / 294.1 MB, free: 11.63 MB / 282.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.0009007/0.0313, allocations: 362.9 kB / 294.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008588/0.03216, allocations: 0.543 MB / 295 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.03217, allocations: 4 kB / 295 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.03263, allocations: 432.1 kB / 295.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.03302, allocations: 71.95 kB / 295.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.03425, allocations: 0.624 MB / 296.2 MB, free: 9.648 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.354e-05/0.03434, allocations: 109.2 kB / 296.3 MB, free: 9.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.03452, allocations: 78.84 kB / 296.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.795e-05/0.03462, allocations: 36.47 kB / 296.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.03462, allocations: 0 / 296.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of Templates: time 0.01239/0.04701, allocations: 7.681 MB / 304.1 MB, free: 1.789 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.037530351895839]