Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 99.02 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 52.39 kB / 280.6 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1065, allocations: 46.63 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004171/0.1107, allocations: 2.411 MB / 329.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1118, allocations: 0.6164 MB / 330.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.112, allocations: 4 kB / 330.3 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1122, allocations: 43.52 kB / 330.4 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002318/0.1125, allocations: 83.27 kB / 330.4 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.1127, allocations: 59.92 kB / 330.5 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.113, allocations: 294.7 kB / 330.8 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.1132, allocations: 102.9 kB / 330.9 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.1134, allocations: 111.6 kB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1136, allocations: 123.5 kB / 331.1 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.1137, allocations: 24 kB / 331.1 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.339e-05/0.1137, allocations: 24 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.239e-05/0.1138, allocations: 59.78 kB / 331.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.114, allocations: 131.3 kB / 331.3 MB, free: 384 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004898/0.1145, allocations: 291.2 kB / 331.6 MB, free: 92 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1146, allocations: 4 kB / 331.6 MB, free: 88 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1146, allocations: 0 / 331.6 MB, free: 88 kB / 270.1 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.1146, allocations: 0 / 331.6 MB, free: 88 kB / 270.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.001258/0.1159, allocations: 0.5382 MB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1159, allocations: 12.03 kB / 332.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.993e-05/0.116, allocations: 28.56 kB / 332.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.1164, allocations: 240.5 kB / 332.4 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.1164, allocations: 16.94 kB / 332.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.2e-05/0.1165, allocations: 36.03 kB / 332.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.1169, allocations: 220.9 kB / 332.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.117, allocations: 4 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.117, allocations: 8 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.117, allocations: 8 kB / 332.7 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004109/0.1174, allocations: 182.1 kB / 332.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.1187, allocations: 0.7578 MB / 333.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.1192, allocations: 226.4 kB / 333.9 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.1194, allocations: 108.8 kB / 334 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.1195, allocations: 7.984 kB / 334 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.1195, allocations: 38.56 kB / 334 MB, free: 13.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=26): time 2.114e-06/0.1195, allocations: 0 / 334 MB, free: 13.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.001815/0.1213, allocations: 0.9575 MB / 335 MB, free: 12.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.1214, allocations: 55.41 kB / 335.1 MB, free: 12.4 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.1215, allocations: 158.7 kB / 335.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1215, allocations: 29.7 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.1216, allocations: 144.5 kB / 335.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.842e-05/0.1217, allocations: 102.5 kB / 335.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.1218, allocations: 49.7 kB / 335.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1219, allocations: 334.8 kB / 335.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.1221, allocations: 75.91 kB / 335.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.1223, allocations: 115.2 kB / 336 MB, free: 11.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.1227, allocations: 203.3 kB / 336.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1227, allocations: 0 / 336.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004653/0.1232, allocations: 269.3 kB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.1232, allocations: 4 kB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.1232, allocations: 4 kB / 336.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1233, allocations: 0 / 336.5 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1235, allocations: 79.89 kB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1235, allocations: 3.938 kB / 336.6 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.1237, allocations: 12 kB / 336.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.1237, allocations: 12 kB / 336.6 MB, free: 10.77 MB / 286.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.0001179/0.1238, allocations: 145.7 kB / 336.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.176e-05/0.1239, allocations: 15.81 kB / 336.8 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.223e-05/0.1239, allocations: 26.56 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1239, allocations: 4 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.124, allocations: 0 / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.124, allocations: 3.984 kB / 336.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.125, allocations: 0.6521 MB / 337.5 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.125, allocations: 0 / 337.5 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003176/0.1253, allocations: 75.89 kB / 337.5 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.1253, allocations: 0 / 337.5 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1254, allocations: 8 kB / 337.5 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1254, allocations: 3.938 kB / 337.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1254, allocations: 0 / 337.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006837/0.1261, allocations: 440.4 kB / 338 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.1261, allocations: 96.81 kB / 338.1 MB, free: 9.203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.514e-05/0.1262, allocations: 8.062 kB / 338.1 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.1263, allocations: 19.92 kB / 338.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.1264, allocations: 15.98 kB / 338.1 MB, free: 9.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.1264, allocations: 8 kB / 338.1 MB, free: 9.152 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.645e-05/0.1265, allocations: 119.5 kB / 338.2 MB, free: 9.035 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1265, allocations: 0 / 338.2 MB, free: 9.035 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.1268, allocations: 60 kB / 338.3 MB, free: 8.977 MB / 286.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.0001171/0.1269, allocations: 107.2 kB / 338.4 MB, free: 8.859 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004706/0.1274, allocations: 219.7 kB / 338.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1274, allocations: 0 / 338.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.1276, allocations: 111.8 kB / 338.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.128, allocations: 45.3 kB / 338.8 MB, free: 8.492 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.1294, allocations: 0.8232 MB / 339.6 MB, free: 7.637 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.1297, allocations: 0.7483 MB / 340.3 MB, free: 6.863 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.024e-05/0.1298, allocations: 25.94 kB / 340.4 MB, free: 6.836 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.233e-05/0.1298, allocations: 23.42 kB / 340.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1299, allocations: 0 / 340.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of Templates: time 0.005922/0.1358, allocations: 2.16 MB / 342.5 MB, free: 4.656 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches