Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001025/0.001025, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001499/0.001499, allocations: 150.1 kB / 24.81 MB, free: 9.285 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.9462/0.9462, allocations: 173.4 MB / 201.5 MB, free: 9.195 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.815e-05, allocations: 6.25 kB / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002472/0.00249, allocations: 2.427 MB / 270.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.003691, allocations: 0.9401 MB / 271.8 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.003806, allocations: 7.938 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.003991, allocations: 51.56 kB / 271.8 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.004383, allocations: 166.9 kB / 272 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.00461, allocations: 183.6 kB / 272.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000331/0.004941, allocations: 482.3 kB / 272.6 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.00507, allocations: 65.06 kB / 272.7 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.005348, allocations: 287.4 kB / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.005563, allocations: 219.5 kB / 273.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.721e-05/0.00561, allocations: 36 kB / 273.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.005769, allocations: 119.9 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.113e-05/0.00586, allocations: 107.7 kB / 273.4 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.244e-05/0.005952, allocations: 139.6 kB / 273.6 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003443/0.006297, allocations: 398.7 kB / 274 MB, free: 0.582 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.006298, allocations: 0 / 274 MB, free: 0.582 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.006299, allocations: 0 / 274 MB, free: 0.582 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.006303, allocations: 0 / 274 MB, free: 0.582 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0007382/0.007041, allocations: 0.6986 MB / 274.7 MB, free: 15.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.007077, allocations: 8.922 kB / 274.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001971/0.007274, allocations: 80.69 kB / 274.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.00756, allocations: 256.5 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.007654, allocations: 144 kB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.007702, allocations: 40.33 kB / 275.2 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.008088, allocations: 324.8 kB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.0081, allocations: 192 / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.008123, allocations: 16.12 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.00813, allocations: 8 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002417/0.008372, allocations: 212.3 kB / 275.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000902/0.009274, allocations: 0.7181 MB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.009571, allocations: 231.3 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.009697, allocations: 117.2 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.009718, allocations: 12.44 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.009744, allocations: 45.89 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.333e-06/0.009746, allocations: 0 / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002059/0.01181, allocations: 1.34 MB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.01184, allocations: 85.61 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.01197, allocations: 249.8 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.012, allocations: 37.7 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.145e-05/0.01207, allocations: 191.8 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.01217, allocations: 194.3 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.797e-05/0.01227, allocations: 95.8 kB / 279 MB, free: 11.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.01238, allocations: 0.5156 MB / 279.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.01248, allocations: 76.94 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.01262, allocations: 166.1 kB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.01282, allocations: 209.3 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.01283, allocations: 0 / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003964/0.01322, allocations: 381.7 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.01323, allocations: 4 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.01324, allocations: 4 kB / 280.4 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003417/0.01358, allocations: 201.4 kB / 280.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.01372, allocations: 63.89 kB / 280.6 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.01568, allocations: 2.814 MB / 283.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.01579, allocations: 23.92 kB / 283.5 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.01582, allocations: 12 kB / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.01593, allocations: 183.7 kB / 283.7 MB, free: 6.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.692e-05/0.01598, allocations: 43.81 kB / 283.7 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.055e-05/0.01602, allocations: 55.23 kB / 283.7 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.01603, allocations: 8 kB / 283.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01603, allocations: 0 / 283.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.01603, allocations: 3.984 kB / 283.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008828/0.01692, allocations: 0.8743 MB / 284.6 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01692, allocations: 4.031 kB / 284.6 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001514/0.01707, allocations: 63.89 kB / 284.7 MB, free: 5.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003009/0.01737, allocations: 203.4 kB / 284.9 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.01739, allocations: 15.98 kB / 284.9 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/0.01913, allocations: 2.771 MB / 287.7 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01913, allocations: 4 kB / 287.7 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005755/0.0197, allocations: 0.6269 MB / 288.3 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.567e-05/0.01979, allocations: 67.75 kB / 288.4 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.01982, allocations: 15.94 kB / 288.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.01994, allocations: 19.98 kB / 288.4 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.515e-05/0.02003, allocations: 68.36 kB / 288.5 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.02005, allocations: 20.05 kB / 288.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.733e-05/0.02013, allocations: 187.9 kB / 288.7 MB, free: 1.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02013, allocations: 0 / 288.7 MB, free: 1.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004176/0.02055, allocations: 151.9 kB / 288.8 MB, free: 1.086 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0001783/0.02073, allocations: 147 kB / 289 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005106/0.02124, allocations: 0.5464 MB / 289.5 MB, free: 368 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.02124, allocations: 4 kB / 289.5 MB, free: 364 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.08608/0.1073, allocations: 439 kB / 290 MB, free: 29.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.1078, allocations: 56.38 kB / 290 MB, free: 29.17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.109, allocations: 0.6738 MB / 290.7 MB, free: 28.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.104e-05/0.1091, allocations: 113.7 kB / 290.8 MB, free: 28.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.1092, allocations: 41.64 kB / 290.8 MB, free: 28.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.1094, allocations: 120.2 kB / 291 MB, free: 28.74 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1094, allocations: 2.969 kB / 291 MB, free: 28.74 MB / 266.7 MB Notification: Performance of Templates: time 0.01144/0.1208, allocations: 7.774 MB / 298.7 MB, free: 27.14 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.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.8341827881522477]