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.001407/0.001407, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 79.88 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4073/0.4086, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01235/0.421, allocations: 10.35 MB / 0.5411 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009568/0.4306, allocations: 3.874 MB / 0.5449 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002718/0.4333, allocations: 60.75 kB / 0.5449 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005162/0.4386, allocations: 2.073 MB / 0.547 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006014/0.4446, allocations: 1.674 MB / 0.5486 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.4468, allocations: 0.6979 MB / 0.5493 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007025/0.4539, allocations: 3.997 MB / 0.5532 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00379/0.4577, allocations: 2.598 MB / 0.5557 GB, free: 8.312 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.4602, allocations: 1.304 MB / 0.557 GB, free: 7.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003018/0.4632, allocations: 1.842 MB / 0.5588 GB, free: 5.156 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001145/0.4644, allocations: 264 kB / 0.5591 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003067/0.4674, allocations: 1.17 MB / 0.5602 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002231/0.4697, allocations: 1.648 MB / 0.5618 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00333/0.473, allocations: 1.883 MB / 0.5636 GB, free: 184 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008815/0.4819, allocations: 6.175 MB / 0.5697 GB, free: 9.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4819, allocations: 4 kB / 0.5697 GB, free: 9.977 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.4819, allocations: 0 / 0.5697 GB, free: 9.977 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002459/0.4822, allocations: 3.938 kB / 0.5697 GB, free: 9.973 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.01157/0.4938, allocations: 4.32 MB / 0.5739 GB, free: 5.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/0.4938, allocations: 8.031 kB / 0.5739 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/0.5095, allocations: 2.455 MB / 0.5763 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00569/0.5152, allocations: 2.418 MB / 0.5787 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.5154, allocations: 193.2 kB / 0.5789 GB, free: 448 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000616/0.516, allocations: 283.9 kB / 0.5791 GB, free: 164 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.5306, allocations: 8.583 MB / 0.5875 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.53e-05/0.5307, allocations: 43.64 kB / 0.5875 GB, free: 6.902 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003225/0.5311, allocations: 127.9 kB / 0.5877 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002705/0.5338, allocations: 1.731 MB / 0.5894 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01395/0.5477, allocations: 7.303 MB / 0.5965 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0398/0.5876, allocations: 34.09 MB / 0.6298 GB, free: 10.56 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008741/0.5964, allocations: 3.49 MB / 0.6332 GB, free: 6.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002365/0.5988, allocations: 1.713 MB / 0.6349 GB, free: 5.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.6105, allocations: 7.52 MB / 0.6422 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.6106, allocations: 59.5 kB / 0.6423 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 3.807e-06/0.6106, allocations: 3.938 kB / 0.6423 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06159/0.6722, allocations: 19.82 MB / 0.6616 GB, free: 9.371 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.6723, allocations: 201.2 kB / 0.6618 GB, free: 9.133 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005063/0.6774, allocations: 3.742 MB / 0.6655 GB, free: 5.398 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003168/0.6777, allocations: 53.7 kB / 0.6655 GB, free: 5.34 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001979/0.6797, allocations: 2.921 MB / 0.6684 GB, free: 2.395 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007309/0.6805, allocations: 0.7443 MB / 0.6691 GB, free: 1.645 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001494/0.682, allocations: 1.215 MB / 0.6703 GB, free: 428 kB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.6821, allocations: 305.1 kB / 0.6706 GB, free: 120 kB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003008/0.6851, allocations: 2.21 MB / 0.6727 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00556/0.6907, allocations: 5.778 MB / 0.6784 GB, free: 6.348 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.7008, allocations: 8.593 MB / 0.6868 GB, free: 12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.7009, allocations: 36 kB / 0.6868 GB, free: 11.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01979/0.7207, allocations: 9.213 MB / 0.6958 GB, free: 2.746 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.37e-05/0.7209, allocations: 60 kB / 0.6959 GB, free: 2.688 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/0.721, allocations: 124 kB / 0.696 GB, free: 2.566 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005269/0.7263, allocations: 1.668 MB / 0.6976 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004233/0.7305, allocations: 1.322 MB / 0.6989 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01416/0.7447, allocations: 9.926 MB / 0.7086 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005085/0.7499, allocations: 311.6 kB / 0.7089 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007936/0.7507, allocations: 372 kB / 0.7092 GB, free: 4.824 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.002963/0.7537, allocations: 1.896 MB / 0.7111 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/0.7544, allocations: 341.7 kB / 0.7114 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009021/0.7634, allocations: 4.145 MB / 0.7155 GB, free: 14.42 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/0.7635, allocations: 23.98 kB / 0.7155 GB, free: 14.39 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.566e-05/0.7635, allocations: 11.94 kB / 0.7155 GB, free: 14.38 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.7635, allocations: 7.969 kB / 0.7155 GB, free: 14.38 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01633/0.7799, allocations: 8.511 MB / 0.7238 GB, free: 5.797 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.7799, allocations: 0 / 0.7238 GB, free: 5.797 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/0.7814, allocations: 259.6 kB / 0.7241 GB, free: 5.543 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005106/0.7865, allocations: 1.425 MB / 0.7255 GB, free: 4.113 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/0.7867, allocations: 39.98 kB / 0.7255 GB, free: 4.074 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3381/1.125, allocations: 9.206 MB / 0.7345 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.125, allocations: 1 kB / 0.7345 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.137, allocations: 6.755 MB / 0.7411 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.138, allocations: 404 kB / 0.7415 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003735/1.139, allocations: 31.73 kB / 0.7415 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/1.14, allocations: 88.39 kB / 0.7416 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/1.14, allocations: 113.8 kB / 0.7417 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.14, allocations: 54.88 kB / 0.7417 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003247/1.144, allocations: 2.316 MB / 0.744 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of sort global known variables: time 4e-07/1.144, allocations: 0 / 0.744 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.004644/1.148, allocations: 0.9743 MB / 0.745 GB, free: 172.5 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.000441/1.149, allocations: 162 kB / 0.7451 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.007768/1.157, allocations: 5.444 MB / 0.7504 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.157, allocations: 3.938 kB / 0.7504 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.002162/1.159, allocations: 1.801 MB / 0.7522 GB, free: 169.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/1.161, allocations: 402.2 kB / 0.7526 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/1.173, allocations: 8.66 MB / 0.761 GB, free: 162.7 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/1.175, allocations: 2.967 MB / 0.7639 GB, free: 159.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003439/1.179, allocations: 1.813 MB / 0.7657 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/1.179, allocations: 219.4 kB / 0.7659 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of SimCode: time 7.11e-07/1.179, allocations: 0 / 0.7659 GB, free: 157.7 MB / 0.5763 GB Notification: Performance of Templates: time 0.05584/1.235, allocations: 36.06 MB / 0.8011 GB, free: 121.9 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/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