Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.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.Force,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_trunk_cpp_ModelicaTest.MultiBody.Forces.Force") translateModel(ModelicaTest.MultiBody.Forces.Force,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_trunk_cpp_ModelicaTest.MultiBody.Forces.Force") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 195.5 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 244.1 MB, free: 8.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008088/0.0008088, allocations: 101.9 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3254/0.3254, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002833, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2655, allocations: 62.95 MB / 0.5165 GB, free: 37.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.3846, allocations: 110 MB / 0.6239 GB, free: 11.43 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.3849, allocations: 71.97 kB / 0.6239 GB, free: 11.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.495/0.8799, allocations: 125.8 MB / 0.7467 GB, free: 90.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.8799, allocations: 0 / 0.7467 GB, free: 90.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004265/0.8804, allocations: 127.5 kB / 0.7469 GB, free: 90.52 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01998/0.9004, allocations: 6.637 MB / 0.7533 GB, free: 86.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.9004, allocations: 7.188 kB / 0.7533 GB, free: 86.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02177/0.9222, allocations: 5.41 MB / 0.7586 GB, free: 83.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.9343, allocations: 5.669 MB / 0.7642 GB, free: 79.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003726/0.9347, allocations: 476.9 kB / 0.7646 GB, free: 78.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002549/0.9373, allocations: 0.6212 MB / 0.7652 GB, free: 77.99 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03039/0.9677, allocations: 15.57 MB / 0.7804 GB, free: 60.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004281/0.9682, allocations: 95.3 kB / 0.7805 GB, free: 60.87 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00246/0.9707, allocations: 303.8 kB / 0.7808 GB, free: 60.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001894/0.9726, allocations: 1.478 MB / 0.7822 GB, free: 59.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02304/0.9956, allocations: 12.56 MB / 0.7945 GB, free: 46.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07026/1.066, allocations: 70.54 MB / 0.8634 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01777/1.084, allocations: 7.01 MB / 0.8703 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0048/1.089, allocations: 3.595 MB / 0.8738 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01533/1.104, allocations: 8.743 MB / 0.8823 GB, free: 2.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.734e-05/1.104, allocations: 68.48 kB / 0.8824 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=246): time 5.751e-06/1.104, allocations: 0 / 0.8824 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of matching and sorting (n=288): time 0.3117/1.416, allocations: 29.89 MB / 0.9116 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/1.416, allocations: 237.8 kB / 0.9118 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.427, allocations: 6.648 MB / 0.9183 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006029/1.427, allocations: 74.17 kB / 0.9183 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002554/1.43, allocations: 4.542 MB / 0.9228 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001215/1.431, allocations: 1.097 MB / 0.9238 GB, free: 122 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/1.432, allocations: 167.1 kB / 0.924 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003381/1.432, allocations: 0.6667 MB / 0.9247 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004089/1.436, allocations: 3.278 MB / 0.9279 GB, free: 120.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005869/1.442, allocations: 8.314 MB / 0.936 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/1.453, allocations: 12.63 MB / 0.9483 GB, free: 103 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/1.454, allocations: 50.91 kB / 0.9484 GB, free: 103 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1101) (initialization): time 0.02047/1.474, allocations: 12.81 MB / 0.9609 GB, free: 98.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/1.474, allocations: 80.75 kB / 0.961 GB, free: 98.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002178/1.474, allocations: 175.8 kB / 0.9611 GB, free: 98.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003562/1.478, allocations: 1.649 MB / 0.9627 GB, free: 97.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006731/1.485, allocations: 1.994 MB / 0.9647 GB, free: 97.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/1.497, allocations: 11.24 MB / 0.9756 GB, free: 89.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00753/1.505, allocations: 0.4884 MB / 0.9761 GB, free: 89.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/1.506, allocations: 0.5056 MB / 0.9766 GB, free: 88.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 807 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],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],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1031): * Single equations (assignments): 1026 * 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%) 22,(2,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007108/1.514, allocations: 3.042 MB / 0.9796 GB, free: 86.03 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/1.515, allocations: 0.5669 MB / 0.9801 GB, free: 85.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/1.527, allocations: 6.269 MB / 0.9863 GB, free: 80.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.052e-05/1.527, allocations: 32 kB / 0.9863 GB, free: 80.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.199e-05/1.527, allocations: 13.31 kB / 0.9863 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.246e-05/1.527, allocations: 12.8 kB / 0.9863 GB, free: 80.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02914/1.556, allocations: 14.21 MB / 1 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.301e-05/1.557, allocations: 4 kB / 1 GB, free: 68.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002625/1.559, allocations: 0.529 MB / 1.001 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003442/1.563, allocations: 1.402 MB / 1.002 GB, free: 67.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00058/1.563, allocations: 51.94 kB / 1.002 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01147/1.575, allocations: 10.44 MB / 1.012 GB, free: 58.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/1.575, allocations: 15.88 kB / 1.012 GB, free: 58.15 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/1.589, allocations: 10.2 MB / 1.022 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/1.591, allocations: 0.638 MB / 1.023 GB, free: 48.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/1.593, allocations: 55.94 kB / 1.023 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003733/1.597, allocations: 189 kB / 1.023 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000767/1.598, allocations: 185.6 kB / 1.023 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003763/1.598, allocations: 75.84 kB / 1.023 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008629/1.607, allocations: 4.256 MB / 1.028 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.12e-07/1.607, allocations: 0 / 1.028 GB, free: 43.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009514/1.616, allocations: 1.551 MB / 1.029 GB, free: 41.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (232): * Single equations (assignments): 227 * 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%) 17,(4,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008264/1.617, allocations: 217.2 kB / 1.029 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01153/1.629, allocations: 8.148 MB / 1.037 GB, free: 33.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/1.629, allocations: 0 / 1.037 GB, free: 33.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004844/1.633, allocations: 3.188 MB / 1.04 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01021/1.644, allocations: 0.7205 MB / 1.041 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02941/1.673, allocations: 17.88 MB / 1.059 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008253/1.681, allocations: 4.638 MB / 1.063 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/1.683, allocations: 447.4 kB / 1.063 GB, free: 6.473 MB / 0.5261 GB Notification: Performance of SimCode: time 1.292e-06/1.683, allocations: 0 / 1.063 GB, free: 6.473 MB / 0.5261 GB Notification: Performance of Templates: time 0.4346/2.118, allocations: 144.1 MB / 1.204 GB, free: 57.76 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Force/Force.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches