Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001447/0.001447, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008995/0.0008993, allocations: 94.28 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3167/0.3167, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003455, allocations: 15.98 kB / 431.4 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2388/0.3447, allocations: 66.44 MB / 0.5436 GB, free: 3.328 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03141/0.3762, allocations: 14.02 MB / 0.5573 GB, free: 9.785 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01364/0.3899, allocations: 320.9 kB / 0.5576 GB, free: 9.734 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.4004, allocations: 3.411 MB / 0.561 GB, free: 8.516 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02875/0.4292, allocations: 10.2 MB / 0.5709 GB, free: 4.129 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005018/0.4342, allocations: 1.288 MB / 0.5722 GB, free: 3.32 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04514/0.4794, allocations: 37.29 MB / 0.6086 GB, free: 1.453 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009887/0.4893, allocations: 6.395 MB / 0.6148 GB, free: 11.02 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004159/0.4935, allocations: 2.258 MB / 0.617 GB, free: 8.754 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005314/0.4989, allocations: 3.669 MB / 0.6206 GB, free: 5.074 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.5001, allocations: 255.9 kB / 0.6209 GB, free: 4.824 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002985/0.5031, allocations: 1.194 MB / 0.622 GB, free: 3.629 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003418/0.5065, allocations: 2.992 MB / 0.625 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/0.5085, allocations: 1.298 MB / 0.6262 GB, free: 15.32 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009853/0.5184, allocations: 8.526 MB / 0.6346 GB, free: 6.773 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.5185, allocations: 0 / 0.6346 GB, free: 6.773 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5185, allocations: 0 / 0.6346 GB, free: 6.773 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003055/0.5188, allocations: 0 / 0.6346 GB, free: 6.773 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.01579/0.5346, allocations: 6.913 MB / 0.6413 GB, free: 15.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.5346, allocations: 12.03 kB / 0.6413 GB, free: 15.76 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02729/0.5619, allocations: 3.758 MB / 0.645 GB, free: 11.99 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.5741, allocations: 5.384 MB / 0.6502 GB, free: 6.523 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000306/0.5744, allocations: 377.2 kB / 0.6506 GB, free: 6.156 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001584/0.576, allocations: 0.5112 MB / 0.6511 GB, free: 5.645 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02894/0.6049, allocations: 16.25 MB / 0.667 GB, free: 4.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001983/0.6052, allocations: 83.3 kB / 0.6671 GB, free: 4.238 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006201/0.6058, allocations: 235.8 kB / 0.6673 GB, free: 4.008 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004457/0.6103, allocations: 2.915 MB / 0.6701 GB, free: 1.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2216/0.8319, allocations: 13.68 MB / 0.6835 GB, free: 132.6 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06939/0.9013, allocations: 64.73 MB / 0.7467 GB, free: 89.01 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02122/0.9225, allocations: 7.923 MB / 0.7544 GB, free: 85.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005853/0.9285, allocations: 4.271 MB / 0.7586 GB, free: 82.94 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02619/0.9547, allocations: 19.28 MB / 0.7774 GB, free: 63.17 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.9548, allocations: 68.5 kB / 0.7775 GB, free: 63.09 MB / 490.7 MB Notification: Performance of pre-optimization done (n=284): time 5.871e-06/0.9548, allocations: 0 / 0.7775 GB, free: 63.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=366): time 0.16/1.115, allocations: 52.54 MB / 0.8288 GB, free: 10.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/1.115, allocations: 273.7 kB / 0.8291 GB, free: 10.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006727/1.122, allocations: 6.059 MB / 0.835 GB, free: 4.023 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007631/1.122, allocations: 81.7 kB / 0.8351 GB, free: 3.938 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002354/1.125, allocations: 4.677 MB / 0.8396 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00183/1.127, allocations: 1.352 MB / 0.841 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000505/1.127, allocations: 192 kB / 0.8411 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004965/1.128, allocations: 0.7149 MB / 0.8418 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006192/1.134, allocations: 4.161 MB / 0.8459 GB, free: 8.844 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009654/1.143, allocations: 9.39 MB / 0.8551 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/1.153, allocations: 6.052 MB / 0.861 GB, free: 6.84 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.665e-05/1.153, allocations: 52 kB / 0.861 GB, free: 6.789 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.2356/1.388, allocations: 17.48 MB / 0.8781 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001659/1.389, allocations: 89.77 kB / 0.8782 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003989/1.389, allocations: 181.4 kB / 0.8784 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01547/1.404, allocations: 4.684 MB / 0.8829 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007338/1.412, allocations: 2.119 MB / 0.885 GB, free: 150.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03449/1.446, allocations: 23.7 MB / 0.9082 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00885/1.455, allocations: 0.5267 MB / 0.9087 GB, free: 140.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002299/1.458, allocations: 0.5367 MB / 0.9092 GB, free: 140.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1130): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(3,88.9%) 49} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008181/1.466, allocations: 3.131 MB / 0.9123 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001562/1.467, allocations: 0.5681 MB / 0.9128 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02196/1.489, allocations: 10.73 MB / 0.9233 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.91e-05/1.489, allocations: 34.94 kB / 0.9233 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.412e-05/1.489, allocations: 19.44 kB / 0.9233 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.288e-05/1.49, allocations: 15.52 kB / 0.9234 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03874/1.528, allocations: 20.49 MB / 0.9434 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.434e-05/1.528, allocations: 0 / 0.9434 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002596/1.531, allocations: 0.5303 MB / 0.9439 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01309/1.544, allocations: 4.26 MB / 0.948 GB, free: 115.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007836/1.545, allocations: 64.55 kB / 0.9481 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02611/1.571, allocations: 21.54 MB / 0.9691 GB, free: 93.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.571, allocations: 0 / 0.9691 GB, free: 93.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02546/1.597, allocations: 15.59 MB / 0.9844 GB, free: 77.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003334/1.6, allocations: 1.185 MB / 0.9855 GB, free: 76.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00131/1.601, allocations: 56 kB / 0.9856 GB, free: 76.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003122/1.604, allocations: 238.1 kB / 0.9858 GB, free: 76.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006021/1.605, allocations: 226.7 kB / 0.986 GB, free: 76.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/1.605, allocations: 89.16 kB / 0.9861 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004789/1.61, allocations: 3.773 MB / 0.9898 GB, free: 72.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.71e-07/1.61, allocations: 0 / 0.9898 GB, free: 72.41 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008155/1.618, allocations: 1.932 MB / 0.9917 GB, free: 70.48 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (266): * Single equations (assignments): 261 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000708/1.619, allocations: 214.4 kB / 0.9919 GB, free: 70.27 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01363/1.633, allocations: 10.4 MB / 1.002 GB, free: 59.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/1.633, allocations: 0 / 1.002 GB, free: 59.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005024/1.638, allocations: 4.084 MB / 1.006 GB, free: 55.74 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004427/1.642, allocations: 0.733 MB / 1.007 GB, free: 55.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03106/1.673, allocations: 19.52 MB / 1.026 GB, free: 35.45 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006432/1.68, allocations: 4.824 MB / 1.031 GB, free: 30.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001897/1.682, allocations: 451.4 kB / 1.031 GB, free: 30.16 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/1.682, allocations: 0 / 1.031 GB, free: 30.16 MB / 0.5105 GB Notification: Performance of Templates: time 0.3825/2.064, allocations: 152.6 MB / 1.18 GB, free: 53.73 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches