Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009878/0.0009879, allocations: 193.8 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007287/0.0007287, allocations: 92 kB / 295.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2933/0.2933, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002503, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3084, allocations: 62.96 MB / 0.516 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.0613/0.3698, allocations: 83 MB / 0.597 GB, free: 5.559 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0381/0.4079, allocations: 16.9 MB / 0.6135 GB, free: 5.277 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01611/0.424, allocations: 395.1 kB / 0.6139 GB, free: 4.891 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01266/0.4367, allocations: 4.417 MB / 0.6182 GB, free: 464 kB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03125/0.468, allocations: 12.72 MB / 0.6306 GB, free: 3.691 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.473, allocations: 0.9673 MB / 0.6316 GB, free: 2.723 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3108/0.7838, allocations: 62.72 MB / 0.6928 GB, free: 52.05 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01202/0.7959, allocations: 7.348 MB / 0.7 GB, free: 51.3 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004373/0.8003, allocations: 1.757 MB / 0.7017 GB, free: 51.3 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004633/0.805, allocations: 2.746 MB / 0.7044 GB, free: 51.3 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009326/0.8059, allocations: 202.1 kB / 0.7046 GB, free: 51.3 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/0.8087, allocations: 1.281 MB / 0.7058 GB, free: 51.29 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.8114, allocations: 2.485 MB / 0.7083 GB, free: 51.29 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004841/0.8162, allocations: 2.738 MB / 0.7109 GB, free: 51.26 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009099/0.8253, allocations: 8.07 MB / 0.7188 GB, free: 48.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.8254, allocations: 0 / 0.7188 GB, free: 48.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.8254, allocations: 0 / 0.7188 GB, free: 48.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003451/0.8258, allocations: 0 / 0.7188 GB, free: 48.59 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: 2137 * Number of variables: 2137 Notification: Performance of Generate backend data structure: time 0.0141/0.8399, allocations: 5.952 MB / 0.7246 GB, free: 45.03 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.8399, allocations: 9.75 kB / 0.7246 GB, free: 45.03 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00327/0.8432, allocations: 1.011 MB / 0.7256 GB, free: 44.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03611/0.8793, allocations: 6.297 MB / 0.7318 GB, free: 39.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008608/0.888, allocations: 4.32 MB / 0.736 GB, free: 36.84 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.8883, allocations: 352 kB / 0.7363 GB, free: 36.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.8897, allocations: 463 kB / 0.7368 GB, free: 36.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02189/0.9116, allocations: 14.6 MB / 0.751 GB, free: 24.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001478/0.9118, allocations: 62.66 kB / 0.7511 GB, free: 24.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005185/0.9124, allocations: 223 kB / 0.7513 GB, free: 24.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00405/0.9164, allocations: 2.787 MB / 0.754 GB, free: 22.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0211/0.9375, allocations: 12.34 MB / 0.7661 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0649/1.002, allocations: 54.81 MB / 0.8196 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.017/1.02, allocations: 6.402 MB / 0.8259 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004147/1.024, allocations: 3.474 MB / 0.8292 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001892/1.024, allocations: 44.41 kB / 0.8293 GB, free: 8.406 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.162e-05/1.024, allocations: 56.38 kB / 0.8293 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=218): time 5.701e-06/1.024, allocations: 0 / 0.8293 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260): time 0.08043/1.104, allocations: 29.72 MB / 0.8584 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.105, allocations: 205.9 kB / 0.8586 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01115/1.116, allocations: 6.051 MB / 0.8645 GB, free: 4.879 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006327/1.116, allocations: 65.7 kB / 0.8645 GB, free: 4.809 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003602/1.12, allocations: 4.207 MB / 0.8686 GB, free: 0.625 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00146/1.122, allocations: 0.9895 MB / 0.8696 GB, free: 15.64 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00093/1.123, allocations: 152 kB / 0.8698 GB, free: 15.5 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006708/1.123, allocations: 0.632 MB / 0.8704 GB, free: 14.86 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005301/1.129, allocations: 3.243 MB / 0.8735 GB, free: 11.61 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008036/1.137, allocations: 7.708 MB / 0.8811 GB, free: 1.781 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/1.15, allocations: 11.86 MB / 0.8926 GB, free: 4.367 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/1.15, allocations: 48 kB / 0.8927 GB, free: 4.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=986) (initialization): time 0.233/1.383, allocations: 12.26 MB / 0.9047 GB, free: 217.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.751e-05/1.383, allocations: 75 kB / 0.9047 GB, free: 217.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/1.384, allocations: 155.4 kB / 0.9049 GB, free: 217.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003811/1.387, allocations: 1.754 MB / 0.9066 GB, free: 217.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005433/1.393, allocations: 1.767 MB / 0.9083 GB, free: 217.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.014/1.407, allocations: 12 MB / 0.92 GB, free: 211.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006554/1.413, allocations: 468.5 kB / 0.9205 GB, free: 211.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001506/1.415, allocations: 461.9 kB / 0.9209 GB, free: 211.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 715 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,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 (914): * Single equations (assignments): 909 * 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.006651/1.422, allocations: 2.874 MB / 0.9237 GB, free: 209.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/1.423, allocations: 0.5098 MB / 0.9242 GB, free: 209.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01207/1.435, allocations: 6.383 MB / 0.9305 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-05/1.435, allocations: 30.56 kB / 0.9305 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.114e-05/1.435, allocations: 8.875 kB / 0.9305 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-05/1.435, allocations: 12.58 kB / 0.9305 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02424/1.459, allocations: 14.04 MB / 0.9442 GB, free: 202.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/1.459, allocations: 0 / 0.9442 GB, free: 202.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/1.461, allocations: 456.4 kB / 0.9447 GB, free: 202.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003516/1.465, allocations: 1.532 MB / 0.9462 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002816/1.465, allocations: 39.69 kB / 0.9462 GB, free: 202.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/1.477, allocations: 11.25 MB / 0.9572 GB, free: 196.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.477, allocations: 0 / 0.9572 GB, free: 196.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/1.49, allocations: 10.37 MB / 0.9673 GB, free: 189.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/1.492, allocations: 0.5887 MB / 0.9679 GB, free: 188.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006581/1.492, allocations: 47.52 kB / 0.9679 GB, free: 188.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/1.495, allocations: 217.2 kB / 0.9681 GB, free: 188.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006872/1.495, allocations: 150.8 kB / 0.9683 GB, free: 188.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/1.496, allocations: 67.94 kB / 0.9684 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005182/1.501, allocations: 3.853 MB / 0.9721 GB, free: 185.4 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.9e-07/1.501, allocations: 3.062 kB / 0.9721 GB, free: 185.4 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006592/1.507, allocations: 1.483 MB / 0.9736 GB, free: 183.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (202): * Single equations (assignments): 197 * 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.01333/1.521, allocations: 11.04 MB / 0.9844 GB, free: 173.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01002/1.531, allocations: 8.004 MB / 0.9922 GB, free: 165.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.531, allocations: 4 kB / 0.9922 GB, free: 165.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004632/1.535, allocations: 3.301 MB / 0.9954 GB, free: 161.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/1.541, allocations: 0.6891 MB / 0.9961 GB, free: 161.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09756/1.638, allocations: 57.73 MB / 1.052 GB, free: 98.27 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007637/1.646, allocations: 4.421 MB / 1.057 GB, free: 93.81 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004935/1.651, allocations: 2.862 MB / 1.06 GB, free: 90.95 MB / 0.5886 GB Notification: Performance of SimCode: time 1.352e-06/1.651, allocations: 0 / 1.06 GB, free: 90.95 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.367/11.02, allocations: 159.2 MB / 1.215 GB, free: 186.4 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques2/FrameForcesAndTorques2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches