Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001626/0.001626, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.518/1.518, 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.0008493/0.0008493, allocations: 91.95 kB / 270.9 MB, free: 8.359 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.4091/0.4091, allocations: 43.56 MB / 362.7 MB, free: 52.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004759, allocations: 16 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1342, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.3462/0.4805, allocations: 84.85 MB / 0.5616 GB, free: 6.152 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05323/0.5338, allocations: 17.2 MB / 0.5784 GB, free: 10.4 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02615/0.56, allocations: 391.7 kB / 0.5788 GB, free: 10.35 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02184/0.5819, allocations: 4.463 MB / 0.5831 GB, free: 8.77 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04676/0.6287, allocations: 12.93 MB / 0.5958 GB, free: 14.55 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007871/0.6366, allocations: 0.9106 MB / 0.5967 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.04506/0.6816, allocations: 35.99 MB / 0.6318 GB, free: 9.609 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01338/0.6951, allocations: 7.073 MB / 0.6387 GB, free: 2.492 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005232/0.7004, allocations: 1.946 MB / 0.6406 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005877/0.7063, allocations: 3.143 MB / 0.6437 GB, free: 13.39 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002018/0.7083, allocations: 236 kB / 0.6439 GB, free: 13.16 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005288/0.7137, allocations: 1.124 MB / 0.645 GB, free: 12.03 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006735/0.7204, allocations: 2.75 MB / 0.6477 GB, free: 9.273 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005255/0.7257, allocations: 1.326 MB / 0.649 GB, free: 7.938 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0173/0.7431, allocations: 8.892 MB / 0.6577 GB, free: 15.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.7431, allocations: 0 / 0.6577 GB, free: 15.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7432, allocations: 4 kB / 0.6577 GB, free: 15.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005195/0.7437, allocations: 4 kB / 0.6577 GB, free: 15.01 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: 2413 * Number of variables: 2413 Notification: Performance of Generate backend data structure: time 0.02592/0.7696, allocations: 6.344 MB / 0.6639 GB, free: 8.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.7697, allocations: 8.031 kB / 0.6639 GB, free: 8.582 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02065/0.7904, allocations: 2.9 MB / 0.6667 GB, free: 5.668 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01518/0.8056, allocations: 4.219 MB / 0.6708 GB, free: 1.391 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006999/0.8064, allocations: 398.7 kB / 0.6712 GB, free: 1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003226/0.8096, allocations: 0.5035 MB / 0.6717 GB, free: 0.4961 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3904/1.2, allocations: 16.39 MB / 0.6877 GB, free: 135.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004424/1.201, allocations: 67.25 kB / 0.6878 GB, free: 135.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002562/1.203, allocations: 238.9 kB / 0.688 GB, free: 135.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008713/1.212, allocations: 3.167 MB / 0.6911 GB, free: 134.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04541/1.257, allocations: 14.08 MB / 0.7048 GB, free: 130.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0864/1.344, allocations: 60.65 MB / 0.7641 GB, free: 81.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/1.362, allocations: 8.042 MB / 0.7719 GB, free: 73.23 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005191/1.367, allocations: 4.195 MB / 0.776 GB, free: 69.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/1.368, allocations: 52.5 kB / 0.7761 GB, free: 68.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/1.368, allocations: 68.5 kB / 0.7761 GB, free: 68.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=290): time 5.39e-06/1.368, allocations: 4 kB / 0.7761 GB, free: 68.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=332): time 0.08869/1.456, allocations: 35.38 MB / 0.8107 GB, free: 33.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.457, allocations: 214.1 kB / 0.8109 GB, free: 33.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008075/1.465, allocations: 6.331 MB / 0.8171 GB, free: 26.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/1.466, allocations: 81.7 kB / 0.8172 GB, free: 26.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/1.468, allocations: 4.532 MB / 0.8216 GB, free: 22.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001675/1.47, allocations: 1.246 MB / 0.8228 GB, free: 20.88 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000464/1.47, allocations: 176 kB / 0.823 GB, free: 20.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003701/1.471, allocations: 0.6781 MB / 0.8236 GB, free: 20.02 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005292/1.476, allocations: 4.066 MB / 0.8276 GB, free: 15.94 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007743/1.484, allocations: 8.929 MB / 0.8363 GB, free: 4.633 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00835/1.492, allocations: 5.881 MB / 0.8421 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.492, allocations: 48 kB / 0.8421 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1156) (initialization): time 0.03385/1.526, allocations: 14.89 MB / 0.8566 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/1.526, allocations: 76 kB / 0.8567 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/1.527, allocations: 168 kB / 0.8569 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006006/1.533, allocations: 2.3 MB / 0.8591 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008439/1.541, allocations: 2.094 MB / 0.8612 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3042/1.845, allocations: 13.5 MB / 0.8744 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009263/1.855, allocations: 0.5449 MB / 0.8749 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002306/1.857, allocations: 0.5154 MB / 0.8754 GB, free: 145.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 769 * Number of states: 0 () * Number of discrete variables: 54 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1084): * Single equations (assignments): 1079 * 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%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00862/1.866, allocations: 3.152 MB / 0.8785 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001693/1.867, allocations: 0.5578 MB / 0.879 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/1.883, allocations: 8.444 MB / 0.8873 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.889e-05/1.883, allocations: 37.25 kB / 0.8873 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.731e-05/1.883, allocations: 9.125 kB / 0.8873 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.69e-05/1.883, allocations: 19.2 kB / 0.8873 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03323/1.916, allocations: 17.4 MB / 0.9043 GB, free: 137.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.049e-05/1.916, allocations: 7.156 kB / 0.9043 GB, free: 137.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/1.92, allocations: 0.5978 MB / 0.9049 GB, free: 137.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005186/1.925, allocations: 2.034 MB / 0.9069 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007809/1.926, allocations: 62.16 kB / 0.9069 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01958/1.945, allocations: 12.71 MB / 0.9194 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.879e-06/1.945, allocations: 8.984 kB / 0.9194 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02208/1.967, allocations: 13.49 MB / 0.9325 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003435/1.971, allocations: 1.255 MB / 0.9338 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001285/1.972, allocations: 62.59 kB / 0.9338 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003275/1.976, allocations: 285 kB / 0.9341 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006885/1.976, allocations: 210.6 kB / 0.9343 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002539/1.976, allocations: 92.3 kB / 0.9344 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006668/1.983, allocations: 4.008 MB / 0.9383 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.01e-07/1.983, allocations: 0 / 0.9383 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009885/1.993, allocations: 1.746 MB / 0.94 GB, free: 123.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (278): * Single equations (assignments): 273 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001008/1.994, allocations: 200.4 kB / 0.9402 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01481/2.009, allocations: 9.848 MB / 0.9498 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/2.009, allocations: 7.594 kB / 0.9498 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006884/2.016, allocations: 4.113 MB / 0.9538 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004996/2.021, allocations: 0.6889 MB / 0.9545 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02715/2.048, allocations: 19.53 MB / 0.9736 GB, free: 92.69 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004267/2.052, allocations: 4.829 MB / 0.9783 GB, free: 87.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002207/2.055, allocations: 463.3 kB / 0.9787 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of SimCode: time 7.21e-07/2.055, allocations: 0 / 0.9787 GB, free: 87.38 MB / 0.5105 GB Notification: Performance of Templates: time 0.4484/2.503, allocations: 154.4 MB / 1.129 GB, free: 119.2 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches