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.001475/0.001475, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001565/0.001565, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2346/0.2346, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 72.56 kB / 417.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1369, allocations: 62.47 MB / 480.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01235/0.1493, allocations: 10.33 MB / 490.4 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008061/0.1574, allocations: 3.891 MB / 494.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001699/0.1591, allocations: 59.81 kB / 494.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004237/0.1634, allocations: 2.075 MB / 496.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004634/0.1681, allocations: 1.673 MB / 498.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.1697, allocations: 0.6862 MB / 498.8 MB, free: 2.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005903/0.1756, allocations: 3.992 MB / 0.491 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003414/0.1791, allocations: 2.605 MB / 0.4936 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002043/0.1811, allocations: 1.308 MB / 0.4949 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002454/0.1836, allocations: 1.846 MB / 0.4967 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006121/0.1842, allocations: 264 kB / 0.4969 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.1866, allocations: 1.166 MB / 0.4981 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001755/0.1884, allocations: 1.64 MB / 0.4997 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002436/0.1908, allocations: 1.887 MB / 0.5015 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2484/0.4393, allocations: 5.935 MB / 0.5073 GB, free: 20.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.4393, allocations: 5.031 kB / 0.5073 GB, free: 20.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4393, allocations: 1.531 kB / 0.5073 GB, free: 20.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000327/0.4397, allocations: 0 / 0.5073 GB, free: 20.13 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.01792/0.4576, allocations: 4.195 MB / 0.5114 GB, free: 18.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.4577, allocations: 9.562 kB / 0.5114 GB, free: 18.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01921/0.4769, allocations: 2.432 MB / 0.5138 GB, free: 18.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009461/0.4864, allocations: 2.359 MB / 0.5161 GB, free: 17.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/0.4869, allocations: 199.6 kB / 0.5163 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00257/0.4894, allocations: 274 kB / 0.5165 GB, free: 17.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02283/0.5123, allocations: 8.592 MB / 0.5249 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002401/0.5126, allocations: 45.11 kB / 0.525 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001604/0.5142, allocations: 125 kB / 0.5251 GB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003096/0.5173, allocations: 1.742 MB / 0.5268 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/0.5322, allocations: 7.291 MB / 0.5339 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04819/0.5805, allocations: 34.16 MB / 0.5673 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.5905, allocations: 3.496 MB / 0.5707 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003003/0.5936, allocations: 1.717 MB / 0.5724 GB, free: 5.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.6077, allocations: 7.528 MB / 0.5797 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/0.6078, allocations: 52.2 kB / 0.5798 GB, free: 13.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 3.958e-06/0.6078, allocations: 4 kB / 0.5798 GB, free: 13.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.06859/0.6764, allocations: 19.61 MB / 0.5989 GB, free: 10.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.6766, allocations: 205 kB / 0.5991 GB, free: 10.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006054/0.6826, allocations: 3.723 MB / 0.6028 GB, free: 6.332 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004862/0.6832, allocations: 60.81 kB / 0.6028 GB, free: 6.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00271/0.6859, allocations: 2.801 MB / 0.6055 GB, free: 3.488 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/0.6872, allocations: 0.7168 MB / 0.6062 GB, free: 2.777 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.689, allocations: 1.194 MB / 0.6074 GB, free: 1.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6892, allocations: 313.1 kB / 0.6077 GB, free: 1.262 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003855/0.693, allocations: 2.202 MB / 0.6099 GB, free: 15.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006697/0.6997, allocations: 5.777 MB / 0.6155 GB, free: 7.562 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.7113, allocations: 8.604 MB / 0.6239 GB, free: 13.72 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/0.7114, allocations: 36 kB / 0.6239 GB, free: 13.69 MB / 478.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02073/0.7322, allocations: 9.194 MB / 0.6329 GB, free: 4.672 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.7323, allocations: 62.19 kB / 0.633 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/0.7325, allocations: 124 kB / 0.6331 GB, free: 4.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005921/0.7384, allocations: 1.665 MB / 0.6347 GB, free: 2.824 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004727/0.7431, allocations: 1.326 MB / 0.636 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/0.7598, allocations: 9.924 MB / 0.6457 GB, free: 7.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004409/0.7643, allocations: 307.6 kB / 0.646 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006156/0.7649, allocations: 371.9 kB / 0.6464 GB, free: 6.77 MB / 494.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.003204/0.7681, allocations: 1.888 MB / 0.6482 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006756/0.7688, allocations: 333 kB / 0.6485 GB, free: 4.539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009752/0.7786, allocations: 4.143 MB / 0.6526 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.792e-05/0.7786, allocations: 31.92 kB / 0.6526 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/0.7787, allocations: 11.66 kB / 0.6526 GB, free: 344 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.872e-05/0.7787, allocations: 7.969 kB / 0.6526 GB, free: 336 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01816/0.7969, allocations: 8.555 MB / 0.661 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-05/0.7969, allocations: 0 / 0.661 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.7983, allocations: 250.3 kB / 0.6612 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005279/0.8036, allocations: 1.436 MB / 0.6626 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003363/0.804, allocations: 32 kB / 0.6626 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/0.8185, allocations: 9.208 MB / 0.6716 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.8185, allocations: 4 kB / 0.6716 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/0.8325, allocations: 6.743 MB / 0.6782 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/0.834, allocations: 372.8 kB / 0.6786 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005471/0.8345, allocations: 31.92 kB / 0.6786 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.8359, allocations: 95.89 kB / 0.6787 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/0.8363, allocations: 111.7 kB / 0.6788 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.8365, allocations: 51.98 kB / 0.6789 GB, free: 5.27 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003957/0.8404, allocations: 2.315 MB / 0.6811 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8404, allocations: 0 / 0.6811 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00506/0.8455, allocations: 0.9832 MB / 0.6821 GB, free: 1.988 MB / 0.5137 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.0004743/0.846, allocations: 159 kB / 0.6822 GB, free: 1.824 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01144/0.8575, allocations: 6.352 MB / 0.6884 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.8575, allocations: 0 / 0.6884 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.8601, allocations: 1.798 MB / 0.6902 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/0.8628, allocations: 389.3 kB / 0.6906 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.8775, allocations: 8.645 MB / 0.699 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003248/0.8808, allocations: 2.957 MB / 0.7019 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00422/0.885, allocations: 1.811 MB / 0.7037 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00069/0.8857, allocations: 223.4 kB / 0.7039 GB, free: 11.59 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/0.8858, allocations: 0 / 0.7039 GB, free: 11.59 MB / 0.545 GB Notification: Performance of Templates: time 0.3159/1.202, allocations: 38.87 MB / 0.7418 GB, free: 187.6 MB / 0.545 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches