Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007769/0.0007769, allocations: 91.88 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3206/0.3206, allocations: 44.83 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002909, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3302, allocations: 62.96 MB / 0.5159 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.05083/0.3811, allocations: 66.42 MB / 0.5807 GB, free: 5.418 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03851/0.4196, allocations: 14.03 MB / 0.5944 GB, free: 8.805 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01609/0.4357, allocations: 319.2 kB / 0.5947 GB, free: 8.492 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01156/0.4474, allocations: 3.413 MB / 0.5981 GB, free: 5.062 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0272/0.4746, allocations: 10.19 MB / 0.608 GB, free: 10.83 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005855/0.4805, allocations: 1.35 MB / 0.6093 GB, free: 9.48 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07697/0.5575, allocations: 64.77 MB / 0.6726 GB, free: 8.629 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.5675, allocations: 6.855 MB / 0.6793 GB, free: 1.676 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2666/0.8342, allocations: 2.234 MB / 0.6815 GB, free: 65.16 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006177/0.8405, allocations: 3.658 MB / 0.685 GB, free: 65.16 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001766/0.8423, allocations: 244.8 kB / 0.6853 GB, free: 65.16 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004284/0.8466, allocations: 1.389 MB / 0.6866 GB, free: 65.16 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004018/0.8506, allocations: 2.979 MB / 0.6895 GB, free: 65.16 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004905/0.8555, allocations: 3.091 MB / 0.6926 GB, free: 65.13 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.8682, allocations: 8.509 MB / 0.7009 GB, free: 64.56 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.8683, allocations: 0 / 0.7009 GB, free: 64.56 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.8683, allocations: 0 / 0.7009 GB, free: 64.56 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006022/0.8689, allocations: 3.094 kB / 0.7009 GB, free: 64.56 MB / 490.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.024/0.8929, allocations: 6.82 MB / 0.7075 GB, free: 61.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.893, allocations: 9.25 kB / 0.7075 GB, free: 61.71 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02663/0.9196, allocations: 3.765 MB / 0.7112 GB, free: 60.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01355/0.9332, allocations: 5.187 MB / 0.7163 GB, free: 58.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003487/0.9336, allocations: 366.4 kB / 0.7166 GB, free: 58.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003065/0.9367, allocations: 0.5159 MB / 0.7171 GB, free: 58.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03403/0.9707, allocations: 16.25 MB / 0.733 GB, free: 50.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003563/0.9712, allocations: 76.22 kB / 0.7331 GB, free: 50.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002571/0.9737, allocations: 234.9 kB / 0.7333 GB, free: 50.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004524/0.9783, allocations: 2.924 MB / 0.7362 GB, free: 48.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02765/1.006, allocations: 13.69 MB / 0.7495 GB, free: 38.64 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.07908/1.085, allocations: 64.73 MB / 0.8127 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02213/1.107, allocations: 7.925 MB / 0.8205 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006521/1.114, allocations: 4.267 MB / 0.8246 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03369/1.148, allocations: 19.27 MB / 0.8435 GB, free: 216 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.835e-05/1.148, allocations: 67.92 kB / 0.8435 GB, free: 140 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=284): time 6.482e-06/1.148, allocations: 0 / 0.8435 GB, free: 140 kB / 0.5261 GB Notification: Performance of matching and sorting (n=366): time 0.4218/1.569, allocations: 52.46 MB / 0.8948 GB, free: 216.8 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.565e-05/1.57, allocations: 268.4 kB / 0.895 GB, free: 216.5 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009108/1.579, allocations: 6.016 MB / 0.9009 GB, free: 215 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001054/1.58, allocations: 84.59 kB / 0.901 GB, free: 215 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002793/1.583, allocations: 4.672 MB / 0.9055 GB, free: 212.1 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001938/1.585, allocations: 1.347 MB / 0.9069 GB, free: 211.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007471/1.585, allocations: 192.8 kB / 0.907 GB, free: 211 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004998/1.586, allocations: 0.7131 MB / 0.9077 GB, free: 210.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006681/1.593, allocations: 4.157 MB / 0.9118 GB, free: 209.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01162/1.604, allocations: 9.394 MB / 0.921 GB, free: 200.7 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01744/1.622, allocations: 14.53 MB / 0.9352 GB, free: 189.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002623/1.622, allocations: 57.19 kB / 0.9352 GB, free: 189.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03881/1.661, allocations: 17.5 MB / 0.9523 GB, free: 182.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/1.661, allocations: 80 kB / 0.9524 GB, free: 182.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002422/1.661, allocations: 184 kB / 0.9526 GB, free: 182.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01414/1.675, allocations: 4.642 MB / 0.9571 GB, free: 179.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007552/1.683, allocations: 2.124 MB / 0.9592 GB, free: 177.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02946/1.713, allocations: 23.7 MB / 0.9823 GB, free: 154 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008186/1.721, allocations: 0.5342 MB / 0.9828 GB, free: 153.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.723, allocations: 0.5369 MB / 0.9834 GB, free: 153 MB / 0.573 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.006965/1.73, allocations: 3.116 MB / 0.9864 GB, free: 149.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/1.731, allocations: 0.5709 MB / 0.987 GB, free: 149.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02135/1.752, allocations: 10.72 MB / 0.9974 GB, free: 138.5 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-05/1.752, allocations: 39.94 kB / 0.9975 GB, free: 138.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.724e-05/1.752, allocations: 31.88 kB / 0.9975 GB, free: 138.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.851e-05/1.752, allocations: 15.94 kB / 0.9975 GB, free: 138.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04349/1.796, allocations: 20.48 MB / 1.018 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.068e-05/1.796, allocations: 4 kB / 1.018 GB, free: 117.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003208/1.799, allocations: 0.5227 MB / 1.018 GB, free: 117.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01397/1.813, allocations: 4.273 MB / 1.022 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009444/1.814, allocations: 63.98 kB / 1.022 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02798/1.842, allocations: 21.53 MB / 1.043 GB, free: 91.17 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/1.842, allocations: 0 / 1.043 GB, free: 91.17 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02786/1.87, allocations: 15.6 MB / 1.059 GB, free: 75.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002125/1.872, allocations: 0.5964 MB / 1.059 GB, free: 74.88 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00233/1.875, allocations: 56.78 kB / 1.059 GB, free: 74.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003909/1.879, allocations: 235.7 kB / 1.059 GB, free: 74.59 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/1.88, allocations: 226.1 kB / 1.06 GB, free: 74.37 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003473/1.88, allocations: 97.17 kB / 1.06 GB, free: 74.28 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006337/1.886, allocations: 3.738 MB / 1.063 GB, free: 70.54 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.342e-06/1.886, allocations: 0 / 1.063 GB, free: 70.54 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01114/1.898, allocations: 1.93 MB / 1.065 GB, free: 68.62 MB / 0.573 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.0009819/1.899, allocations: 209.1 kB / 1.065 GB, free: 68.42 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.915, allocations: 10.41 MB / 1.076 GB, free: 57.99 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.915, allocations: 192 / 1.076 GB, free: 57.99 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005685/1.921, allocations: 4.085 MB / 1.08 GB, free: 53.88 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006237/1.927, allocations: 0.7242 MB / 1.08 GB, free: 53.16 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03176/1.959, allocations: 19.5 MB / 1.099 GB, free: 33.62 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008321/1.967, allocations: 4.826 MB / 1.104 GB, free: 28.77 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002221/1.969, allocations: 439.4 kB / 1.104 GB, free: 28.34 MB / 0.573 GB Notification: Performance of SimCode: time 1.203e-06/1.969, allocations: 4 kB / 1.104 GB, free: 28.34 MB / 0.573 GB Notification: Performance of Templates: time 0.5097/2.479, allocations: 152 MB / 1.253 GB, free: 86.86 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches