Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001906/0.001906, allocations: 88.28 kB / 20.96 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002381/0.002381, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 177 MB / 204.4 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.379e-05/2.531e-05, allocations: 2.312 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004087/0.004113, allocations: 2.343 MB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.006199, allocations: 1.006 MB / 275.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.006371, allocations: 3.938 kB / 275.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003111/0.006682, allocations: 59.45 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004948/0.007177, allocations: 155.3 kB / 275.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.007621, allocations: 167.6 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006071/0.008228, allocations: 486.5 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.008375, allocations: 48.88 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004644/0.008839, allocations: 275.5 kB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.009214, allocations: 215.5 kB / 276.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.399e-05/0.009298, allocations: 36 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002755/0.009574, allocations: 127.9 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.00972, allocations: 103.7 kB / 277.2 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.009908, allocations: 135.7 kB / 277.3 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007743/0.01068, allocations: 0.5335 MB / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01069, allocations: 0 / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01069, allocations: 0 / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.0107, allocations: 3.938 kB / 277.8 MB, free: 12.11 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.00134/0.01204, allocations: 0.5869 MB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.01207, allocations: 11.98 kB / 278.4 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004095/0.01248, allocations: 80.67 kB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005701/0.01305, allocations: 254.5 kB / 278.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001973/0.01325, allocations: 140 kB / 278.9 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.251e-05/0.01332, allocations: 28.38 kB / 278.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008475/0.01417, allocations: 412.9 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.01419, allocations: 4.141 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.01424, allocations: 16.12 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.01425, allocations: 4 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000952/0.0152, allocations: 410.2 kB / 279.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.01745, allocations: 1.088 MB / 280.9 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007723/0.01823, allocations: 322.5 kB / 281.2 MB, free: 8.633 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/0.01865, allocations: 165.5 kB / 281.3 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.01868, allocations: 8 kB / 281.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.01873, allocations: 42.45 kB / 281.4 MB, free: 8.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.343e-06/0.01873, allocations: 0 / 281.4 MB, free: 8.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00527/0.024, allocations: 1.675 MB / 283.1 MB, free: 6.676 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.02407, allocations: 88.8 kB / 283.1 MB, free: 6.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.02444, allocations: 254.1 kB / 283.4 MB, free: 6.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.02449, allocations: 33.7 kB / 283.4 MB, free: 6.273 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.02462, allocations: 144.8 kB / 283.6 MB, free: 6.125 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001554/0.02477, allocations: 158.9 kB / 283.7 MB, free: 5.969 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.02493, allocations: 90.06 kB / 283.8 MB, free: 5.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.02512, allocations: 338.8 kB / 284.1 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.02553, allocations: 164.9 kB / 284.3 MB, free: 5.375 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000479/0.02601, allocations: 252.2 kB / 284.5 MB, free: 5.102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.02679, allocations: 340.2 kB / 284.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.02679, allocations: 0 / 284.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001277/0.02807, allocations: 0.5489 MB / 285.4 MB, free: 4.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.02809, allocations: 11.92 kB / 285.4 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.0281, allocations: 4 kB / 285.4 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008958/0.02899, allocations: 304.6 kB / 285.7 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/0.02927, allocations: 55.95 kB / 285.8 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004507/0.03378, allocations: 2.736 MB / 288.5 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.0341, allocations: 27.97 kB / 288.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/0.03414, allocations: 16.06 kB / 288.6 MB, free: 0.9453 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.000247/0.03439, allocations: 157.8 kB / 288.7 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.03451, allocations: 43.75 kB / 288.8 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.03462, allocations: 46.98 kB / 288.8 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.03462, allocations: 4 kB / 288.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.03463, allocations: 0 / 288.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.03463, allocations: 4 kB / 288.8 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.03742, allocations: 0.9727 MB / 289.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.03742, allocations: 0 / 289.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.03776, allocations: 43.97 kB / 289.8 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001136/0.0389, allocations: 292.7 kB / 290.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.03894, allocations: 15.98 kB / 290.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004523/0.04346, allocations: 2.687 MB / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.04347, allocations: 0 / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.04528, allocations: 0.8277 MB / 293.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.04546, allocations: 67.78 kB / 293.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.04552, allocations: 12 kB / 293.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002671/0.04579, allocations: 15.98 kB / 293.7 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.04597, allocations: 71.86 kB / 293.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.04601, allocations: 15.98 kB / 293.8 MB, free: 11.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002637/0.04627, allocations: 188.3 kB / 294 MB, free: 11.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.04627, allocations: 0 / 294 MB, free: 11.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006281/0.0469, allocations: 135.9 kB / 294.2 MB, free: 11.2 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.001703/0.0486, allocations: 414.9 kB / 294.6 MB, free: 10.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.05008, allocations: 0.5969 MB / 295.2 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.05008, allocations: 3.938 kB / 295.2 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007933/0.05088, allocations: 417.8 kB / 295.6 MB, free: 9.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004744/0.05135, allocations: 78.03 kB / 295.6 MB, free: 9.801 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.05277, allocations: 0.6576 MB / 296.3 MB, free: 9.113 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.05297, allocations: 167.8 kB / 296.5 MB, free: 8.93 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002225/0.05319, allocations: 78.91 kB / 296.5 MB, free: 8.855 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.05331, allocations: 36.47 kB / 296.6 MB, free: 8.82 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.05331, allocations: 0 / 296.6 MB, free: 8.82 MB / 282.7 MB Notification: Performance of Templates: time 0.01352/0.06683, allocations: 7.032 MB / 303.6 MB, free: 1.816 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.721309195971116]