Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001933/0.001933, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002261/0.002261, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.3 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2239/0.2239, allocations: 46.12 MB / 343.7 MB, free: 11.77 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 75.88 kB / 416.9 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1252, allocations: 62.45 MB / 479.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03674/0.162, allocations: 34.61 MB / 0.5019 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2616/0.4236, allocations: 7.864 MB / 0.5096 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007322/0.431, allocations: 152.7 kB / 0.5098 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004852/0.4359, allocations: 2.05 MB / 0.5118 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.4416, allocations: 1.564 MB / 0.5133 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002287/0.4439, allocations: 0.6411 MB / 0.5139 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.4544, allocations: 5.719 MB / 0.5195 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005/0.4595, allocations: 2.572 MB / 0.522 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.4628, allocations: 1.17 MB / 0.5232 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003809/0.4666, allocations: 1.979 MB / 0.5251 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008055/0.4675, allocations: 186.7 kB / 0.5253 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.47, allocations: 1.162 MB / 0.5264 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001687/0.4717, allocations: 1.599 MB / 0.528 GB, free: 6.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.4738, allocations: 1.821 MB / 0.5297 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006752/0.4805, allocations: 5.881 MB / 0.5355 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4806, allocations: 0 / 0.5355 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4806, allocations: 0 / 0.5355 GB, free: 0.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002104/0.4808, allocations: 2.438 kB / 0.5355 GB, free: 0.957 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.009676/0.4905, allocations: 4.205 MB / 0.5396 GB, free: 14.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4905, allocations: 14.41 kB / 0.5396 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01563/0.5062, allocations: 2.433 MB / 0.542 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006371/0.5126, allocations: 2.354 MB / 0.5443 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.5128, allocations: 198 kB / 0.5445 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007787/0.5136, allocations: 274.2 kB / 0.5447 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01611/0.5297, allocations: 8.593 MB / 0.5531 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.5298, allocations: 39.66 kB / 0.5532 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003498/0.5302, allocations: 125.9 kB / 0.5533 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002836/0.533, allocations: 1.74 MB / 0.555 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.5483, allocations: 7.299 MB / 0.5621 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04965/0.5979, allocations: 34.16 MB / 0.5955 GB, free: 4.652 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009631/0.6076, allocations: 3.498 MB / 0.5989 GB, free: 1.008 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002962/0.6106, allocations: 1.717 MB / 0.6006 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01382/0.6245, allocations: 7.512 MB / 0.6079 GB, free: 7.527 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.86e-05/0.6246, allocations: 51.56 kB / 0.608 GB, free: 7.469 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.75e-06/0.6246, allocations: 4 kB / 0.608 GB, free: 7.465 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06872/0.6933, allocations: 19.6 MB / 0.6271 GB, free: 3.715 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.6935, allocations: 201.2 kB / 0.6273 GB, free: 3.477 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006666/0.7002, allocations: 3.726 MB / 0.6309 GB, free: 15.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005643/0.7008, allocations: 49.7 kB / 0.631 GB, free: 15.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002821/0.7036, allocations: 2.81 MB / 0.6337 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/0.7048, allocations: 0.709 MB / 0.6344 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001969/0.7068, allocations: 1.21 MB / 0.6356 GB, free: 10.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.7069, allocations: 305.1 kB / 0.6359 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003759/0.7107, allocations: 2.206 MB / 0.638 GB, free: 8.461 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007326/0.718, allocations: 5.786 MB / 0.6437 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/0.7304, allocations: 8.601 MB / 0.6521 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/0.7306, allocations: 36 kB / 0.6521 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02186/0.7525, allocations: 9.187 MB / 0.6611 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.7526, allocations: 64.25 kB / 0.6612 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001841/0.7528, allocations: 124 kB / 0.6613 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006498/0.7593, allocations: 1.661 MB / 0.6629 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005018/0.7644, allocations: 1.329 MB / 0.6642 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01623/0.7807, allocations: 9.25 MB / 0.6732 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004746/0.7854, allocations: 315.5 kB / 0.6735 GB, free: 460 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/0.7865, allocations: 366.2 kB / 0.6739 GB, free: 96 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 710 * Array equations: 3 * 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): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003807/0.7903, allocations: 1.892 MB / 0.6757 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007907/0.7911, allocations: 327.8 kB / 0.676 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.8015, allocations: 4.137 MB / 0.6801 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.2e-05/0.8016, allocations: 26.25 kB / 0.6801 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.954e-05/0.8017, allocations: 15.98 kB / 0.6801 GB, free: 9.664 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.647e-05/0.8017, allocations: 15.91 kB / 0.6801 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02011/0.8218, allocations: 8.544 MB / 0.6885 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-05/0.8219, allocations: 4 kB / 0.6885 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.8233, allocations: 251.6 kB / 0.6887 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005608/0.8289, allocations: 1.429 MB / 0.6901 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003241/0.8293, allocations: 30.27 kB / 0.6901 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/0.8433, allocations: 8.545 MB / 0.6985 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.8433, allocations: 7.922 kB / 0.6985 GB, free: 6.688 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2549/1.098, allocations: 6.726 MB / 0.7051 GB, free: 192.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.099, allocations: 377 kB / 0.7054 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006943/1.1, allocations: 35.95 kB / 0.7055 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/1.101, allocations: 93.14 kB / 0.7056 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005065/1.102, allocations: 115.1 kB / 0.7057 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/1.102, allocations: 51.38 kB / 0.7057 GB, free: 192.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00459/1.107, allocations: 2.319 MB / 0.708 GB, free: 192.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/1.107, allocations: 0 / 0.708 GB, free: 192.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005317/1.112, allocations: 0.9783 MB / 0.7089 GB, free: 192.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * 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): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004633/1.113, allocations: 160.1 kB / 0.7091 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00843/1.121, allocations: 5.416 MB / 0.7144 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/1.121, allocations: 0 / 0.7144 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002503/1.124, allocations: 1.806 MB / 0.7161 GB, free: 190.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/1.126, allocations: 372.7 kB / 0.7165 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/1.14, allocations: 10.36 MB / 0.7266 GB, free: 185.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003029/1.143, allocations: 2.968 MB / 0.7295 GB, free: 183.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003933/1.147, allocations: 1.813 MB / 0.7313 GB, free: 183.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005483/1.147, allocations: 220.6 kB / 0.7315 GB, free: 183.8 MB / 0.545 GB Notification: Performance of SimCode: time 7.11e-07/1.147, allocations: 0 / 0.7315 GB, free: 183.8 MB / 0.545 GB Notification: Performance of Templates: time 0.05468/1.202, allocations: 37.45 MB / 0.7681 GB, free: 156.5 MB / 0.545 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches