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.0008995/0.0008992, allocations: 95.64 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 205.6 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 247.5 MB, free: 9.492 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2024/0.2024, allocations: 46.19 MB / 345.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002799/0.0002799, allocations: 11.98 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1213, allocations: 63.56 MB / 483.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03248/0.1539, allocations: 33.61 MB / 0.5052 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2534/0.4073, allocations: 7.799 MB / 0.5128 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006238/0.4135, allocations: 150.3 kB / 0.513 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.4151, allocations: 379.4 kB / 0.5133 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004667/0.4198, allocations: 1.573 MB / 0.5149 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.4217, allocations: 0.6426 MB / 0.5155 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007963/0.4296, allocations: 5.714 MB / 0.5211 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004994/0.4347, allocations: 3.301 MB / 0.5243 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002218/0.4369, allocations: 1.023 MB / 0.5253 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002531/0.4395, allocations: 1.799 MB / 0.5271 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005233/0.44, allocations: 123.6 kB / 0.5272 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002351/0.4424, allocations: 1.097 MB / 0.5282 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.4439, allocations: 1.513 MB / 0.5297 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002932/0.4469, allocations: 1.734 MB / 0.5314 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.452, allocations: 4.66 MB / 0.536 GB, free: 2.332 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4521, allocations: 0 / 0.536 GB, free: 2.332 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4521, allocations: 0 / 0.536 GB, free: 2.332 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002431/0.4523, allocations: 0 / 0.536 GB, free: 2.332 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.008538/0.4609, allocations: 3.46 MB / 0.5393 GB, free: 15.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.4609, allocations: 15.03 kB / 0.5394 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01719/0.4781, allocations: 2.494 MB / 0.5418 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005668/0.4838, allocations: 2.369 MB / 0.5441 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.4841, allocations: 194.1 kB / 0.5443 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001167/0.4852, allocations: 278.9 kB / 0.5446 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/0.5019, allocations: 8.62 MB / 0.553 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001621/0.5021, allocations: 39.59 kB / 0.553 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007436/0.5029, allocations: 127 kB / 0.5531 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002992/0.5059, allocations: 1.732 MB / 0.5548 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01511/0.521, allocations: 7.334 MB / 0.562 GB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04409/0.5652, allocations: 34.18 MB / 0.5954 GB, free: 7.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009097/0.5743, allocations: 3.548 MB / 0.5988 GB, free: 3.711 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/0.5767, allocations: 1.708 MB / 0.6005 GB, free: 1.992 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.5885, allocations: 7.53 MB / 0.6079 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.5886, allocations: 47.5 kB / 0.6079 GB, free: 10.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 3.937e-06/0.5886, allocations: 0 / 0.6079 GB, free: 10.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06519/0.6538, allocations: 20 MB / 0.6274 GB, free: 6.016 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.6539, allocations: 201.2 kB / 0.6276 GB, free: 5.777 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006049/0.66, allocations: 3.734 MB / 0.6313 GB, free: 2.051 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003987/0.6604, allocations: 53.7 kB / 0.6313 GB, free: 1.992 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002363/0.6628, allocations: 2.797 MB / 0.634 GB, free: 15.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.664, allocations: 0.7178 MB / 0.6347 GB, free: 14.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/0.6653, allocations: 0.5071 MB / 0.6352 GB, free: 13.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6654, allocations: 309.1 kB / 0.6355 GB, free: 13.67 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004174/0.6696, allocations: 2.214 MB / 0.6377 GB, free: 11.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007122/0.6767, allocations: 5.774 MB / 0.6433 GB, free: 3.898 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/0.6878, allocations: 8.619 MB / 0.6518 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/0.688, allocations: 36.28 kB / 0.6518 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02069/0.7087, allocations: 9.232 MB / 0.6608 GB, free: 260 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.7088, allocations: 62.28 kB / 0.6609 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000194/0.709, allocations: 127.9 kB / 0.661 GB, free: 72 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006218/0.7153, allocations: 1.693 MB / 0.6626 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004436/0.7197, allocations: 1.33 MB / 0.6639 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/0.7342, allocations: 9.312 MB / 0.673 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004252/0.7385, allocations: 319.5 kB / 0.6733 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008958/0.7395, allocations: 364 kB / 0.6737 GB, free: 2.938 MB / 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.003636/0.7431, allocations: 1.902 MB / 0.6755 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000721/0.7438, allocations: 327.7 kB / 0.6759 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.7542, allocations: 4.186 MB / 0.6799 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.495e-05/0.7543, allocations: 20 kB / 0.68 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.7544, allocations: 8 kB / 0.68 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-05/0.7544, allocations: 15.91 kB / 0.68 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01933/0.7737, allocations: 8.597 MB / 0.6884 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.048e-05/0.7738, allocations: 0 / 0.6884 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.7751, allocations: 263.6 kB / 0.6886 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005729/0.7809, allocations: 1.458 MB / 0.6901 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002743/0.7812, allocations: 31.94 kB / 0.6901 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.7945, allocations: 8.603 MB / 0.6985 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7946, allocations: 3.938 kB / 0.6985 GB, free: 9.352 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01342/0.808, allocations: 6.783 MB / 0.7051 GB, free: 2.543 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.8091, allocations: 384.6 kB / 0.7055 GB, free: 2.145 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008498/0.81, allocations: 28 kB / 0.7055 GB, free: 2.117 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/0.812, allocations: 98.78 kB / 0.7056 GB, free: 2.023 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000473/0.8125, allocations: 117.2 kB / 0.7057 GB, free: 1.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002057/0.8127, allocations: 55.92 kB / 0.7058 GB, free: 1.855 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.2194/1.032, allocations: 2.309 MB / 0.708 GB, free: 192.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.22e-07/1.032, allocations: 0 / 0.708 GB, free: 192.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006222/1.038, allocations: 0.9774 MB / 0.709 GB, free: 192.3 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.0006159/1.039, allocations: 156 kB / 0.7091 GB, free: 192.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009263/1.048, allocations: 5.43 MB / 0.7144 GB, free: 191.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/1.048, allocations: 5.531 kB / 0.7144 GB, free: 191.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002724/1.051, allocations: 1.81 MB / 0.7162 GB, free: 191 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.054, allocations: 368 kB / 0.7166 GB, free: 190.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/1.072, allocations: 10.81 MB / 0.7271 GB, free: 185.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003972/1.076, allocations: 2.959 MB / 0.73 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009389/1.077, allocations: 265 kB / 0.7303 GB, free: 184.2 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/1.077, allocations: 0 / 0.7303 GB, free: 184.2 MB / 0.545 GB Notification: Performance of Templates: time 0.08035/1.157, allocations: 68.32 MB / 0.797 GB, free: 128.1 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/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