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.002492/0.002492, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002/0.002, allocations: 156.8 kB / 24.27 MB, free: 156 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.588/1.588, allocations: 177 MB / 204.4 MB, free: 5.602 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.774e-06/1.774e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.699e-05/2.876e-05, allocations: 2.312 kB / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004292/0.004321, allocations: 2.454 MB / 274.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.006355, allocations: 1.018 MB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.006491, allocations: 4 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.006755, allocations: 59.39 kB / 275.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004331/0.007188, allocations: 156 kB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.00758, allocations: 171.6 kB / 276 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.00815, allocations: 490.5 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.008291, allocations: 48.89 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005918/0.008883, allocations: 275.5 kB / 276.8 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.009231, allocations: 211.5 kB / 277 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.633e-05/0.009317, allocations: 40 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.009577, allocations: 119.9 kB / 277.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.009738, allocations: 107.7 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.00992, allocations: 131.7 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007504/0.01067, allocations: 0.5373 MB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.01068, allocations: 4 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.01068, allocations: 4 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.01068, allocations: 0 / 278 MB, free: 12 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.001346/0.01203, allocations: 0.6865 MB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.01207, allocations: 11.98 kB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.01246, allocations: 84.69 kB / 278.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.01297, allocations: 257.3 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.01317, allocations: 144 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/0.01323, allocations: 28.38 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000974/0.01421, allocations: 404.3 kB / 279.6 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.389e-05/0.01424, allocations: 8.141 kB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-05/0.01431, allocations: 16.12 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.01432, allocations: 15.88 kB / 279.6 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.01573, allocations: 374.3 kB / 280 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003495/0.01922, allocations: 1.227 MB / 281.2 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.02036, allocations: 318.8 kB / 281.5 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005872/0.02094, allocations: 156.3 kB / 281.7 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.003e-05/0.02099, allocations: 12 kB / 281.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.318e-05/0.02105, allocations: 41.34 kB / 281.7 MB, free: 8.059 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.435e-06/0.02105, allocations: 0 / 281.7 MB, free: 8.059 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.007352/0.0284, allocations: 1.617 MB / 283.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.0285, allocations: 96.78 kB / 283.4 MB, free: 6.262 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009283/0.02943, allocations: 285.9 kB / 283.7 MB, free: 5.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.925e-05/0.0295, allocations: 37.7 kB / 283.7 MB, free: 5.922 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000203/0.0297, allocations: 199.5 kB / 283.9 MB, free: 5.723 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.02994, allocations: 158.8 kB / 284.1 MB, free: 5.566 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002784/0.03022, allocations: 103.8 kB / 284.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004105/0.03063, allocations: 0.5196 MB / 284.7 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.03121, allocations: 140.9 kB / 284.8 MB, free: 4.789 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.03193, allocations: 257.2 kB / 285.1 MB, free: 4.504 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.03307, allocations: 338.3 kB / 285.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.03307, allocations: 0 / 285.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001868/0.03494, allocations: 0.5244 MB / 285.9 MB, free: 3.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.03496, allocations: 11.94 kB / 286 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.03497, allocations: 0 / 286 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.03612, allocations: 275.5 kB / 286.2 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.03645, allocations: 55.89 kB / 286.3 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006498/0.04295, allocations: 3.352 MB / 289.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.04333, allocations: 23.98 kB / 289.7 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-05/0.0434, allocations: 19.98 kB / 289.7 MB, free: 15.76 MB / 282.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.0003213/0.04372, allocations: 192.5 kB / 289.9 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.04391, allocations: 47.75 kB / 289.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001531/0.04406, allocations: 43 kB / 290 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.04407, allocations: 7.984 kB / 290 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.04408, allocations: 0 / 290 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.04409, allocations: 0 / 290 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.04734, allocations: 1.018 MB / 291 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.04735, allocations: 4 kB / 291 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003327/0.04768, allocations: 51.89 kB / 291 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.04871, allocations: 259.6 kB / 291.3 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-05/0.04877, allocations: 15.98 kB / 291.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006556/0.05532, allocations: 3.312 MB / 294.6 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.05533, allocations: 3.938 kB / 294.6 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.05789, allocations: 0.8424 MB / 295.5 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.05815, allocations: 67.78 kB / 295.5 MB, free: 9.715 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.05824, allocations: 8 kB / 295.5 MB, free: 9.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003613/0.05861, allocations: 19.98 kB / 295.6 MB, free: 9.688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002762/0.05888, allocations: 63.88 kB / 295.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.207e-05/0.05894, allocations: 19.98 kB / 295.6 MB, free: 9.605 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004088/0.05935, allocations: 216.1 kB / 295.8 MB, free: 9.395 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.05935, allocations: 0 / 295.8 MB, free: 9.395 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00111/0.06046, allocations: 131.9 kB / 296 MB, free: 9.266 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.00314/0.0636, allocations: 399.5 kB / 296.4 MB, free: 8.988 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001895/0.0655, allocations: 0.6671 MB / 297 MB, free: 8.297 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.0655, allocations: 0 / 297 MB, free: 8.297 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008746/0.06638, allocations: 0.4888 MB / 297.5 MB, free: 7.785 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.06687, allocations: 81.98 kB / 297.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.06861, allocations: 0.6586 MB / 298.3 MB, free: 7.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.06882, allocations: 171.8 kB / 298.4 MB, free: 6.832 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002265/0.06905, allocations: 66.91 kB / 298.5 MB, free: 6.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.06918, allocations: 40.47 kB / 298.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.06918, allocations: 7.938 kB / 298.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of Templates: time 0.1376/0.2068, allocations: 7.102 MB / 305.6 MB, free: 41.25 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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.805292660021223]