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.001408/0.001408, allocations: 88.75 kB / 20.68 MB, free: 1.02 MB / 14.72 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.001366/0.001366, allocations: 158 kB / 23.95 MB, free: 4.152 MB / 14.72 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.44/1.44, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 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 2.144e-06/2.144e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.992e-05/3.206e-05, allocations: 3.469 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.006232/0.006265, allocations: 2.414 MB / 327.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003439/0.009704, allocations: 1.087 MB / 328.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003627/0.01007, allocations: 8.469 kB / 328.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004328/0.0105, allocations: 66.44 kB / 328.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000891/0.01139, allocations: 189.2 kB / 328.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008156/0.01221, allocations: 184.2 kB / 328.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.01342, allocations: 0.5297 MB / 329.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.01369, allocations: 60.53 kB / 329.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009195/0.01461, allocations: 317.4 kB / 329.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006497/0.01526, allocations: 231.1 kB / 330.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.01543, allocations: 41.97 kB / 330.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004581/0.01589, allocations: 138.4 kB / 330.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.01613, allocations: 124.3 kB / 330.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.01648, allocations: 153.4 kB / 330.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.0177, allocations: 0.5788 MB / 331.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.0177, allocations: 0 / 331.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.0177, allocations: 3.938 kB / 331.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.399e-05/0.01772, allocations: 1.219 kB / 331.1 MB, free: 12.78 MB / 302.1 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.002238/0.01996, allocations: 0.6392 MB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.02, allocations: 14.2 kB / 331.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007331/0.02073, allocations: 63.2 kB / 331.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00088/0.02161, allocations: 269.5 kB / 332.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002648/0.02188, allocations: 143.4 kB / 332.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.02199, allocations: 36.02 kB / 332.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.0235, allocations: 449.5 kB / 332.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.02353, allocations: 1.531 kB / 332.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.539e-05/0.02361, allocations: 18.69 kB / 332.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.02362, allocations: 8.062 kB / 332.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/0.02544, allocations: 458.4 kB / 333.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.02827, allocations: 0.7998 MB / 334 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.02976, allocations: 368.9 kB / 334.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008422/0.03061, allocations: 205.4 kB / 334.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.03066, allocations: 13.91 kB / 334.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/0.03072, allocations: 37.59 kB / 334.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 3.486e-06/0.03073, allocations: 1.156 kB / 334.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.009269/0.03999, allocations: 1.913 MB / 336.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.04008, allocations: 83.45 kB / 336.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006008/0.04068, allocations: 254.4 kB / 336.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.652e-05/0.04077, allocations: 37.23 kB / 336.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.04099, allocations: 146.1 kB / 337 MB, free: 8.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.04126, allocations: 194.3 kB / 337.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/0.04153, allocations: 90.17 kB / 337.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.04175, allocations: 338.8 kB / 337.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000812/0.04256, allocations: 192.9 kB / 337.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009283/0.04349, allocations: 269.7 kB / 338.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/0.04508, allocations: 383.5 kB / 338.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.04508, allocations: 4 kB / 338.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002265/0.04735, allocations: 0.5926 MB / 339 MB, free: 6.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.04738, allocations: 8 kB / 339 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.04739, allocations: 4.031 kB / 339 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.04867, allocations: 298.6 kB / 339.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.04919, allocations: 75.88 kB / 339.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006845/0.05604, allocations: 2.747 MB / 342.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005229/0.05656, allocations: 36.06 kB / 342.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.088e-05/0.05665, allocations: 19.98 kB / 342.2 MB, free: 3.48 MB / 302.1 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.0003463/0.057, allocations: 157.7 kB / 342.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.05717, allocations: 35.8 kB / 342.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/0.05733, allocations: 47.31 kB / 342.4 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.05734, allocations: 8 kB / 342.4 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.05734, allocations: 7.875 kB / 342.5 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.05736, allocations: 7.984 kB / 342.5 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.06132, allocations: 1.135 MB / 343.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.06132, allocations: 0 / 343.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005606/0.06188, allocations: 63.89 kB / 343.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.06312, allocations: 292.6 kB / 343.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.116e-05/0.06319, allocations: 15.98 kB / 344 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006267/0.06946, allocations: 2.673 MB / 346.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.06946, allocations: 3.938 kB / 346.6 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003164/0.07262, allocations: 0.9451 MB / 347.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00032/0.07294, allocations: 75.73 kB / 347.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.07306, allocations: 12 kB / 347.7 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005022/0.07357, allocations: 23.97 kB / 347.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.07386, allocations: 80.34 kB / 347.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.081e-05/0.07393, allocations: 19.98 kB / 347.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003831/0.07432, allocations: 193.4 kB / 348 MB, free: 13.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.07432, allocations: 0 / 348 MB, free: 13.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001148/0.07547, allocations: 147.9 kB / 348.1 MB, free: 13.38 MB / 318.1 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.002125/0.07759, allocations: 403.2 kB / 348.5 MB, free: 13.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.07995, allocations: 0.6756 MB / 349.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.07996, allocations: 0 / 349.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.08133, allocations: 460.6 kB / 349.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007552/0.08208, allocations: 43.97 kB / 349.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.08437, allocations: 0.754 MB / 350.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.08467, allocations: 186.9 kB / 350.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003731/0.08504, allocations: 82.89 kB / 350.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.08525, allocations: 44.41 kB / 350.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.08525, allocations: 0 / 350.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02142/0.1067, allocations: 7.512 MB / 358.3 MB, free: 3.324 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] 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.5757905170321465]