Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_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.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001542/0.001542, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 243 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2031/0.2031, allocations: 44.19 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 69.39 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01096/0.1168, allocations: 10.37 MB / 481.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008105/0.1249, allocations: 3.864 MB / 484.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.1273, allocations: 63.81 kB / 485 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004447/0.1318, allocations: 2.071 MB / 487.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004605/0.1365, allocations: 1.699 MB / 488.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.1381, allocations: 0.7018 MB / 489.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005299/0.1434, allocations: 3.985 MB / 493.5 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003194/0.1466, allocations: 2.598 MB / 496.1 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.1487, allocations: 1.312 MB / 497.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002573/0.1513, allocations: 1.85 MB / 499.2 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007743/0.1521, allocations: 271.9 kB / 499.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.1544, allocations: 1.19 MB / 0.4889 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.1561, allocations: 1.656 MB / 0.4906 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.1579, allocations: 1.899 MB / 0.4924 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005775/0.1637, allocations: 6.205 MB / 0.4985 GB, free: 5.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.1638, allocations: 0 / 0.4985 GB, free: 5.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.1638, allocations: 3.938 kB / 0.4985 GB, free: 5.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001262/0.1639, allocations: 3.938 kB / 0.4985 GB, free: 5.723 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.007548/0.1715, allocations: 4.228 MB / 0.5026 GB, free: 1.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1715, allocations: 11.97 kB / 0.5026 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.203/0.3745, allocations: 2.424 MB / 0.505 GB, free: 46.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006922/0.3815, allocations: 2.438 MB / 0.5074 GB, free: 45.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/0.3817, allocations: 195 kB / 0.5075 GB, free: 45.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006955/0.3824, allocations: 274.1 kB / 0.5078 GB, free: 45.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.3967, allocations: 8.579 MB / 0.5162 GB, free: 41.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.3969, allocations: 36.86 kB / 0.5162 GB, free: 41.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.3972, allocations: 131.7 kB / 0.5163 GB, free: 41.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002764/0.4, allocations: 1.738 MB / 0.518 GB, free: 41.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.4125, allocations: 7.282 MB / 0.5252 GB, free: 38.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03289/0.4454, allocations: 34.03 MB / 0.5584 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007644/0.4531, allocations: 3.483 MB / 0.5618 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00221/0.4553, allocations: 1.709 MB / 0.5635 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/0.4678, allocations: 7.43 MB / 0.5707 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.4679, allocations: 51.56 kB / 0.5708 GB, free: 6.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 7.835e-06/0.4679, allocations: 0 / 0.5708 GB, free: 6.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06199/0.5299, allocations: 19.59 MB / 0.5899 GB, free: 2.344 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.5301, allocations: 209.2 kB / 0.5901 GB, free: 2.098 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005353/0.5354, allocations: 3.734 MB / 0.5937 GB, free: 14.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/0.5358, allocations: 53.98 kB / 0.5938 GB, free: 14.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001867/0.5376, allocations: 2.799 MB / 0.5965 GB, free: 11.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008012/0.5384, allocations: 0.7212 MB / 0.5972 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001485/0.5399, allocations: 1.202 MB / 0.5984 GB, free: 9.531 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.5401, allocations: 305.1 kB / 0.5987 GB, free: 9.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003041/0.5431, allocations: 2.209 MB / 0.6008 GB, free: 7.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005434/0.5485, allocations: 5.758 MB / 0.6065 GB, free: 15.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0095/0.5581, allocations: 8.604 MB / 0.6149 GB, free: 5.133 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.047e-05/0.5582, allocations: 36 kB / 0.6149 GB, free: 5.098 MB / 446.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01759/0.5758, allocations: 9.17 MB / 0.6239 GB, free: 11.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.92e-05/0.5759, allocations: 56 kB / 0.6239 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001285/0.576, allocations: 128 kB / 0.624 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005503/0.5815, allocations: 1.661 MB / 0.6257 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004049/0.5856, allocations: 1.326 MB / 0.627 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/0.5996, allocations: 9.913 MB / 0.6366 GB, free: 14.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004484/0.6041, allocations: 307.6 kB / 0.6369 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006503/0.6048, allocations: 360 kB / 0.6373 GB, free: 14.04 MB / 478.1 MB 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.002883/0.6077, allocations: 1.892 MB / 0.6391 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005935/0.6083, allocations: 331.7 kB / 0.6394 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009179/0.6175, allocations: 4.137 MB / 0.6435 GB, free: 7.645 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.974e-05/0.6175, allocations: 20 kB / 0.6435 GB, free: 7.625 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/0.6176, allocations: 8 kB / 0.6435 GB, free: 7.617 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/0.6176, allocations: 12.41 kB / 0.6435 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/0.6352, allocations: 8.512 MB / 0.6518 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.057e-05/0.6352, allocations: 0 / 0.6518 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.6365, allocations: 251.6 kB / 0.6521 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005098/0.6417, allocations: 1.433 MB / 0.6535 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000243/0.6419, allocations: 28 kB / 0.6535 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01345/0.6554, allocations: 9.224 MB / 0.6625 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6554, allocations: 4.031 kB / 0.6625 GB, free: 3.945 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01243/0.6678, allocations: 6.718 MB / 0.6691 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.6691, allocations: 380.7 kB / 0.6694 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003995/0.6695, allocations: 31.98 kB / 0.6695 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.6708, allocations: 91.88 kB / 0.6695 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003962/0.6712, allocations: 113.1 kB / 0.6697 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/0.6714, allocations: 51.98 kB / 0.6697 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003508/0.6749, allocations: 2.32 MB / 0.672 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.51e-07/0.6749, allocations: 0 / 0.672 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004707/0.6796, allocations: 0.9974 MB / 0.6729 GB, free: 9.223 MB / 0.4981 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.0004123/0.6801, allocations: 166.2 kB / 0.6731 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007844/0.6879, allocations: 5.424 MB / 0.6784 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.688, allocations: 4 kB / 0.6784 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002571/0.6905, allocations: 1.792 MB / 0.6802 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/0.6929, allocations: 381.5 kB / 0.6805 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.7077, allocations: 8.536 MB / 0.6889 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003896/0.7117, allocations: 2.961 MB / 0.6917 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004454/0.7161, allocations: 1.808 MB / 0.6935 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/0.717, allocations: 227.4 kB / 0.6937 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of SimCode: time 9.82e-07/0.717, allocations: 0 / 0.6937 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of Templates: time 0.2697/0.9867, allocations: 34.32 MB / 0.7272 GB, free: 160.4 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches