Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001716, allocations: 109.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001916/0.001916, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.145/2.145, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002501/0.002501, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4369, allocations: 50.54 MB / 409.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.006498/0.4435, allocations: 2.43 MB / 412.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.4454, allocations: 0.6193 MB / 413 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003358/0.4458, allocations: 4 kB / 413 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.4462, allocations: 35.59 kB / 413 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004228/0.4466, allocations: 79.27 kB / 413.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.447, allocations: 63.91 kB / 413.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.4476, allocations: 290.7 kB / 413.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.448, allocations: 118.8 kB / 413.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.4483, allocations: 107.6 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.4486, allocations: 127.5 kB / 413.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.359e-05/0.4487, allocations: 24 kB / 413.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.404e-05/0.4487, allocations: 27.94 kB / 413.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.258e-05/0.4488, allocations: 55.78 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.449, allocations: 127.4 kB / 414 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.4496, allocations: 296 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4496, allocations: 4 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.614e-06/0.4496, allocations: 0 / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.4496, allocations: 0 / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001196/0.4508, allocations: 0.542 MB / 414.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.4509, allocations: 12.03 kB / 414.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.451, allocations: 28.56 kB / 414.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.4515, allocations: 240.1 kB / 415.1 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.4516, allocations: 24.94 kB / 415.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.419e-05/0.4517, allocations: 32.03 kB / 415.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000725/0.4524, allocations: 224.9 kB / 415.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.4525, allocations: 3.938 kB / 415.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.4525, allocations: 12 kB / 415.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.4525, allocations: 4 kB / 415.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006534/0.4532, allocations: 182.1 kB / 415.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.455, allocations: 0.7538 MB / 416.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007854/0.4559, allocations: 218.5 kB / 416.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.4563, allocations: 116.8 kB / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.4563, allocations: 0 / 416.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.4563, allocations: 34.56 kB / 416.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 2.224e-06/0.4564, allocations: 0 / 416.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002757/0.4591, allocations: 0.9591 MB / 417.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.4592, allocations: 55.41 kB / 417.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.4594, allocations: 155.1 kB / 417.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.4595, allocations: 29.7 kB / 417.9 MB, free: 9.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.4596, allocations: 148.5 kB / 418 MB, free: 9.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.4598, allocations: 106.5 kB / 418.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.4599, allocations: 45.7 kB / 418.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.4601, allocations: 330.8 kB / 418.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.4604, allocations: 75.95 kB / 418.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.4608, allocations: 112.3 kB / 418.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/0.4614, allocations: 207.3 kB / 418.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4614, allocations: 3.938 kB / 418.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008066/0.4622, allocations: 265.3 kB / 419.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.4623, allocations: 8 kB / 419.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4623, allocations: 0 / 419.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4623, allocations: 0 / 419.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000493/0.4628, allocations: 79.89 kB / 419.3 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.4629, allocations: 4 kB / 419.3 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.4631, allocations: 11.98 kB / 419.3 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.4631, allocations: 8 kB / 419.3 MB, free: 7.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001904/0.4633, allocations: 141.8 kB / 419.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.4634, allocations: 19.81 kB / 419.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-05/0.4635, allocations: 26.55 kB / 419.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4635, allocations: 4 kB / 419.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.4636, allocations: 0 / 419.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4636, allocations: 0 / 419.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.4652, allocations: 0.6645 MB / 420.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4652, allocations: 4 kB / 420.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.4658, allocations: 67.97 kB / 420.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.4658, allocations: 0 / 420.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.4658, allocations: 11.94 kB / 420.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.436e-06/0.4658, allocations: 7.922 kB / 420.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4659, allocations: 0 / 420.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.467, allocations: 443.7 kB / 420.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.661e-05/0.4671, allocations: 96.81 kB / 420.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.4672, allocations: 12.06 kB / 420.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.4674, allocations: 15.92 kB / 420.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.717e-05/0.4675, allocations: 23.91 kB / 420.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.84e-05/0.4676, allocations: 12 kB / 420.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.4677, allocations: 115.2 kB / 420.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4677, allocations: 0 / 420.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005953/0.4683, allocations: 60 kB / 421 MB, free: 5.957 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001591/0.4685, allocations: 99.25 kB / 421.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007478/0.4693, allocations: 211.9 kB / 421.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4693, allocations: 0 / 421.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003591/0.4697, allocations: 107.8 kB / 421.4 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.4704, allocations: 42.19 kB / 421.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.4726, allocations: 0.8288 MB / 422.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.4731, allocations: 0.7522 MB / 423 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.4732, allocations: 19.44 kB / 423 MB, free: 3.824 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4732, allocations: 3.938 kB / 423 MB, free: 3.82 MB / 334.1 MB Notification: Performance of Templates: time 0.007518/0.4808, allocations: 2.83 MB / 425.9 MB, free: 0.9961 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches