Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.002399/0.002399, allocations: 103.5 kB / 20.97 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.002834/0.002834, allocations: 160.8 kB / 24.27 MB, free: 152 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.544/1.544, allocations: 177 MB / 204.4 MB, free: 5.633 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.794e-05/2.946e-05, allocations: 2.312 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004455/0.004484, allocations: 2.532 MB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.006703, allocations: 1.104 MB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.006831, allocations: 4 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.007136, allocations: 67.42 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005098/0.007646, allocations: 187.8 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004252/0.008071, allocations: 187.5 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.008848, allocations: 0.5256 MB / 276.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.009042, allocations: 65.11 kB / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005219/0.009564, allocations: 323.3 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004015/0.009965, allocations: 231.5 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.01007, allocations: 44 kB / 277.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000279/0.01035, allocations: 131.8 kB / 277.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.01053, allocations: 119.6 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.01074, allocations: 151.6 kB / 277.8 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008489/0.01159, allocations: 0.588 MB / 278.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.01159, allocations: 0 / 278.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01159, allocations: 0 / 278.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.0116, allocations: 3.938 kB / 278.4 MB, free: 11.58 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001428/0.01303, allocations: 0.7449 MB / 279.1 MB, free: 10.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.01306, allocations: 11.98 kB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.01352, allocations: 92.67 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005277/0.01404, allocations: 264 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.01423, allocations: 144 kB / 279.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.755e-05/0.01431, allocations: 40.27 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008635/0.01517, allocations: 432.9 kB / 280.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.01519, allocations: 192 / 280.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.668e-05/0.01524, allocations: 20.12 kB / 280.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.01525, allocations: 8 kB / 280.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009912/0.01624, allocations: 418.3 kB / 280.5 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.01811, allocations: 0.8599 MB / 281.4 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.01898, allocations: 357.8 kB / 281.8 MB, free: 8.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.01945, allocations: 197.1 kB / 281.9 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.0195, allocations: 12.5 kB / 282 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.01954, allocations: 41.89 kB / 282 MB, free: 7.812 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.553e-06/0.01954, allocations: 0 / 282 MB, free: 7.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.005383/0.02492, allocations: 1.847 MB / 283.9 MB, free: 5.902 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.433e-05/0.025, allocations: 85.55 kB / 283.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003921/0.02539, allocations: 306.7 kB / 284.2 MB, free: 5.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.02544, allocations: 37.7 kB / 284.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.02559, allocations: 191.9 kB / 284.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.02579, allocations: 210.3 kB / 284.7 MB, free: 5.039 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.02599, allocations: 103.8 kB / 284.8 MB, free: 4.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003098/0.0263, allocations: 0.5235 MB / 285.3 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.02674, allocations: 164.9 kB / 285.4 MB, free: 4.234 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/0.02726, allocations: 262.2 kB / 285.7 MB, free: 3.961 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008472/0.02811, allocations: 353.3 kB / 286 MB, free: 3.609 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.02811, allocations: 4 kB / 286.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001346/0.02946, allocations: 0.5798 MB / 286.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.02948, allocations: 11.98 kB / 286.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.02949, allocations: 0 / 286.6 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008452/0.03033, allocations: 265.4 kB / 286.9 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.03065, allocations: 71.88 kB / 287 MB, free: 2.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004975/0.03562, allocations: 3.414 MB / 290.4 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.03595, allocations: 19.98 kB / 290.4 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.036, allocations: 23.98 kB / 290.4 MB, free: 15.09 MB / 282.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.0003421/0.03635, allocations: 204.3 kB / 290.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.03651, allocations: 51.77 kB / 290.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.03665, allocations: 51.3 kB / 290.7 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.03666, allocations: 4 kB / 290.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.03666, allocations: 7.938 kB / 290.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.03668, allocations: 3.984 kB / 290.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002572/0.03925, allocations: 1.194 MB / 291.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.03926, allocations: 0 / 291.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/0.03959, allocations: 67.94 kB / 292 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007899/0.04038, allocations: 259.4 kB / 292.3 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.597e-05/0.04042, allocations: 19.98 kB / 292.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/0.04538, allocations: 3.309 MB / 295.6 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.04538, allocations: 0 / 295.6 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.04745, allocations: 0.9509 MB / 296.5 MB, free: 8.777 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.04767, allocations: 79.73 kB / 296.6 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/0.04774, allocations: 15.98 kB / 296.6 MB, free: 8.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.04801, allocations: 24.05 kB / 296.7 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.04823, allocations: 76.36 kB / 296.7 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.04827, allocations: 19.98 kB / 296.8 MB, free: 8.566 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000291/0.04856, allocations: 217.3 kB / 297 MB, free: 8.355 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04856, allocations: 0 / 297 MB, free: 8.355 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006808/0.04924, allocations: 155.9 kB / 297.1 MB, free: 8.203 MB / 282.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.002618/0.05186, allocations: 404.1 kB / 297.5 MB, free: 7.926 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.05358, allocations: 0.7221 MB / 298.2 MB, free: 7.18 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.05358, allocations: 4 kB / 298.2 MB, free: 7.176 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.05466, allocations: 0.539 MB / 298.8 MB, free: 6.617 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.05522, allocations: 71.89 kB / 298.8 MB, free: 6.547 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.05699, allocations: 0.7646 MB / 299.6 MB, free: 5.742 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.05723, allocations: 186.8 kB / 299.8 MB, free: 5.535 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.05748, allocations: 70.92 kB / 299.9 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.05763, allocations: 48.41 kB / 299.9 MB, free: 5.418 MB / 282.7 MB Notification: Performance of SimCode: time 1.323e-06/0.05763, allocations: 0 / 299.9 MB, free: 5.418 MB / 282.7 MB Notification: Performance of Templates: time 0.1247/0.1823, allocations: 7.638 MB / 307.5 MB, free: 41.55 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.816285512992181]