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.001006/0.001006, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001009/0.001009, allocations: 160.9 kB / 25.61 MB, free: 8.902 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.9494/0.9494, allocations: 177.1 MB / 206 MB, free: 4.496 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.533e-06/1.533e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.31e-05, allocations: 5.406 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002946/0.002969, allocations: 2.451 MB / 276.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.004198, allocations: 1.026 MB / 277.7 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.004306, allocations: 4 kB / 277.7 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.004552, allocations: 67.42 kB / 277.7 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.004872, allocations: 163.1 kB / 277.9 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.00512, allocations: 159.7 kB / 278 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.005473, allocations: 482.5 kB / 278.5 MB, free: 96 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.005585, allocations: 48.89 kB / 278.6 MB, free: 44 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/0.005825, allocations: 275.4 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.006069, allocations: 219.5 kB / 279 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.006118, allocations: 36 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.0063, allocations: 123.9 kB / 279.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.006403, allocations: 107.7 kB / 279.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.63e-05/0.006499, allocations: 127.7 kB / 279.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.006904, allocations: 418.6 kB / 279.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.006907, allocations: 0 / 279.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006908, allocations: 0 / 279.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.006913, allocations: 0 / 279.8 MB, free: 14.76 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.0008029/0.007716, allocations: 0.6866 MB / 280.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.00775, allocations: 12.03 kB / 280.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.00798, allocations: 80.69 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.008286, allocations: 249.6 kB / 280.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.008399, allocations: 147.9 kB / 281 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.008442, allocations: 24.38 kB / 281 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.0088, allocations: 320.2 kB / 281.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.008815, allocations: 4.172 kB / 281.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.008839, allocations: 20.12 kB / 281.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.008849, allocations: 8 kB / 281.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.009105, allocations: 200.3 kB / 281.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.0103, allocations: 1.097 MB / 282.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.01059, allocations: 199 kB / 282.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.0107, allocations: 92.34 kB / 282.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.01073, allocations: 4 kB / 283 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.01075, allocations: 49.28 kB / 283 MB, free: 11.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.373e-06/0.01076, allocations: 0 / 283 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002115/0.01287, allocations: 1.203 MB / 284.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.01291, allocations: 88.84 kB / 284.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.01307, allocations: 262.1 kB / 284.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.0131, allocations: 33.7 kB / 284.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.6e-05/0.01319, allocations: 199.5 kB / 284.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.25e-05/0.01327, allocations: 146.7 kB / 284.9 MB, free: 9.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.01338, allocations: 99.75 kB / 285 MB, free: 9.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.01351, allocations: 0.504 MB / 285.5 MB, free: 8.754 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.01361, allocations: 72.94 kB / 285.6 MB, free: 8.684 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.01376, allocations: 177.2 kB / 285.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.01398, allocations: 202.3 kB / 286 MB, free: 8.258 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01398, allocations: 0 / 286 MB, free: 8.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004553/0.01443, allocations: 365 kB / 286.3 MB, free: 7.891 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.01445, allocations: 8 kB / 286.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.01446, allocations: 0 / 286.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000404/0.01486, allocations: 235.4 kB / 286.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.01499, allocations: 51.97 kB / 286.6 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.0172, allocations: 2.792 MB / 289.4 MB, free: 4.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.01732, allocations: 15.98 kB / 289.4 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.01734, allocations: 15.98 kB / 289.4 MB, free: 4.668 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.0001182/0.01746, allocations: 180.5 kB / 289.6 MB, free: 4.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.01753, allocations: 43.86 kB / 289.6 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/0.01758, allocations: 39 kB / 289.7 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01758, allocations: 7.938 kB / 289.7 MB, free: 4.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.01759, allocations: 11.91 kB / 289.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.01759, allocations: 0 / 289.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008777/0.01847, allocations: 0.7838 MB / 290.5 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01847, allocations: 0 / 290.5 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.0186, allocations: 47.97 kB / 290.5 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003514/0.01895, allocations: 220.9 kB / 290.7 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.01897, allocations: 11.98 kB / 290.8 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.02094, allocations: 2.766 MB / 293.5 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.02094, allocations: 4.031 kB / 293.5 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006418/0.02158, allocations: 0.557 MB / 294.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.818e-05/0.02168, allocations: 67.78 kB / 294.2 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.02172, allocations: 15.94 kB / 294.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.02184, allocations: 15.98 kB / 294.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.02196, allocations: 63.88 kB / 294.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.02198, allocations: 11.98 kB / 294.3 MB, free: 15.65 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.485e-05/0.02208, allocations: 184.4 kB / 294.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02208, allocations: 4.031 kB / 294.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004081/0.02249, allocations: 139.9 kB / 294.6 MB, free: 15.33 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.000806/0.02329, allocations: 375.5 kB / 294.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005832/0.02387, allocations: 0.5 MB / 295.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.02388, allocations: 0 / 295.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003332/0.02421, allocations: 416.1 kB / 295.9 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.02449, allocations: 72.14 kB / 295.9 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009065/0.0254, allocations: 0.5999 MB / 296.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.298e-05/0.02547, allocations: 109 kB / 296.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.02559, allocations: 58.92 kB / 296.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.02573, allocations: 122.2 kB / 296.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02573, allocations: 0 / 296.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of Templates: time 0.009685/0.03541, allocations: 7.957 MB / 304.8 MB, free: 5.227 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: 2.971530642360449]