Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 113.7 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 206.7 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1844/0.1844, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2723, allocations: 62.43 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01021/0.2825, allocations: 10.35 MB / 0.5418 GB, free: 5.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007026/0.2896, allocations: 3.878 MB / 0.5456 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.2909, allocations: 64.56 kB / 0.5456 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003466/0.2944, allocations: 2.073 MB / 0.5476 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0036/0.298, allocations: 1.706 MB / 0.5493 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.2994, allocations: 0.694 MB / 0.55 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004552/0.3039, allocations: 4.008 MB / 0.5539 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002592/0.3065, allocations: 2.595 MB / 0.5564 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.308, allocations: 1.296 MB / 0.5577 GB, free: 7.109 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001962/0.31, allocations: 1.853 MB / 0.5595 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004437/0.3105, allocations: 264 kB / 0.5598 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.3122, allocations: 1.17 MB / 0.5609 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3135, allocations: 1.683 MB / 0.5625 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001539/0.315, allocations: 1.879 MB / 0.5644 GB, free: 248 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005586/0.3206, allocations: 6.151 MB / 0.5704 GB, free: 10.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3207, allocations: 4 kB / 0.5704 GB, free: 10.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.3207, allocations: 0 / 0.5704 GB, free: 10.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001285/0.3208, allocations: 3.938 kB / 0.5704 GB, free: 10.06 MB / 430.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.006987/0.3278, allocations: 4.198 MB / 0.5745 GB, free: 5.797 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.3279, allocations: 12.03 kB / 0.5745 GB, free: 5.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01386/0.3417, allocations: 2.433 MB / 0.5769 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004809/0.3466, allocations: 2.41 MB / 0.5792 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.3467, allocations: 189.3 kB / 0.5794 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006559/0.3474, allocations: 283.7 kB / 0.5797 GB, free: 416 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/0.3592, allocations: 8.595 MB / 0.5881 GB, free: 7.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.875e-05/0.3593, allocations: 39.64 kB / 0.5881 GB, free: 7.141 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002881/0.3596, allocations: 131.8 kB / 0.5882 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00236/0.362, allocations: 1.735 MB / 0.5899 GB, free: 5.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.373, allocations: 7.292 MB / 0.5971 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03202/0.405, allocations: 34.02 MB / 0.6303 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007606/0.4127, allocations: 3.49 MB / 0.6337 GB, free: 7.223 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002009/0.4147, allocations: 1.705 MB / 0.6354 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.4251, allocations: 7.518 MB / 0.6427 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4251, allocations: 55.44 kB / 0.6428 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.017e-06/0.4252, allocations: 0 / 0.6428 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.05616/0.4813, allocations: 19.63 MB / 0.6619 GB, free: 9.859 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.421e-05/0.4814, allocations: 197.2 kB / 0.6621 GB, free: 9.625 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004648/0.4861, allocations: 3.734 MB / 0.6658 GB, free: 5.898 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.4863, allocations: 49.7 kB / 0.6658 GB, free: 5.844 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.488, allocations: 2.802 MB / 0.6685 GB, free: 3.004 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006719/0.4887, allocations: 0.7174 MB / 0.6692 GB, free: 2.277 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/0.4903, allocations: 1.206 MB / 0.6704 GB, free: 1.059 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.128e-05/0.4904, allocations: 301.1 kB / 0.6707 GB, free: 0.7617 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/0.4933, allocations: 2.214 MB / 0.6729 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004936/0.4982, allocations: 5.766 MB / 0.6785 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008695/0.5069, allocations: 8.602 MB / 0.6869 GB, free: 12.64 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.57e-05/0.507, allocations: 40 kB / 0.6869 GB, free: 12.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01581/0.5229, allocations: 9.189 MB / 0.6959 GB, free: 3.406 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.523, allocations: 60 kB / 0.696 GB, free: 3.348 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/0.5232, allocations: 128.1 kB / 0.6961 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00514/0.5283, allocations: 1.657 MB / 0.6977 GB, free: 1.562 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/0.5322, allocations: 1.341 MB / 0.699 GB, free: 224 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01364/0.5459, allocations: 9.906 MB / 0.7087 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/0.5497, allocations: 327.5 kB / 0.709 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008126/0.5505, allocations: 360 kB / 0.7093 GB, free: 5.488 MB / 0.5606 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.003256/0.5538, allocations: 1.896 MB / 0.7112 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007293/0.5545, allocations: 335.8 kB / 0.7115 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008977/0.5635, allocations: 4.145 MB / 0.7156 GB, free: 15.09 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-05/0.5636, allocations: 20 kB / 0.7156 GB, free: 15.07 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/0.5636, allocations: 8 kB / 0.7156 GB, free: 15.06 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.5636, allocations: 11.97 kB / 0.7156 GB, free: 15.05 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/0.5811, allocations: 8.51 MB / 0.7239 GB, free: 6.469 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/0.5812, allocations: 4 kB / 0.7239 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.5824, allocations: 251.6 kB / 0.7242 GB, free: 6.219 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004903/0.5873, allocations: 1.429 MB / 0.7256 GB, free: 4.785 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/0.5875, allocations: 31.98 kB / 0.7256 GB, free: 4.754 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2473/0.8348, allocations: 9.214 MB / 0.7346 GB, free: 176.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8348, allocations: 4.844 kB / 0.7346 GB, free: 176.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01106/0.8459, allocations: 6.741 MB / 0.7412 GB, free: 174.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008031/0.8467, allocations: 378.8 kB / 0.7415 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003534/0.8471, allocations: 31.34 kB / 0.7416 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.8484, allocations: 87.31 kB / 0.7416 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.8487, allocations: 106.6 kB / 0.7417 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.8489, allocations: 58.2 kB / 0.7418 GB, free: 173.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002608/0.8515, allocations: 2.314 MB / 0.7441 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8515, allocations: 3.562 kB / 0.7441 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.003872/0.8554, allocations: 0.9811 MB / 0.745 GB, free: 173 MB / 0.5763 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.0003731/0.8557, allocations: 156.3 kB / 0.7452 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.00649/0.8622, allocations: 5.437 MB / 0.7505 GB, free: 171 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/0.8623, allocations: 5.5 kB / 0.7505 GB, free: 171 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.8642, allocations: 1.801 MB / 0.7522 GB, free: 170.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.8661, allocations: 393.7 kB / 0.7526 GB, free: 170 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.877, allocations: 8.915 MB / 0.7613 GB, free: 163.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/0.8792, allocations: 2.951 MB / 0.7642 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000758/0.8799, allocations: 265.8 kB / 0.7645 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of SimCode: time 8.82e-07/0.88, allocations: 3.938 kB / 0.7645 GB, free: 160.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.06436/0.9443, allocations: 69.6 MB / 0.8324 GB, free: 90.67 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches