Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001036, allocations: 200 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.233/1.233, allocations: 226.5 MB / 243.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008173/0.0008171, allocations: 96.64 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2813/0.2813, allocations: 44.83 MB / 392.3 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003274, allocations: 15.97 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2827, allocations: 62.95 MB / 0.516 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.05873/0.3415, allocations: 79.51 MB / 0.5936 GB, free: 8.977 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03329/0.3748, allocations: 16.31 MB / 0.6095 GB, free: 9.402 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01399/0.3888, allocations: 375.1 kB / 0.6099 GB, free: 9.035 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01167/0.4005, allocations: 4.238 MB / 0.614 GB, free: 4.777 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02865/0.4292, allocations: 12.19 MB / 0.6259 GB, free: 8.539 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.4341, allocations: 0.9791 MB / 0.6269 GB, free: 7.559 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3067/0.7408, allocations: 62.65 MB / 0.6881 GB, free: 56.93 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01181/0.7527, allocations: 7.533 MB / 0.6954 GB, free: 56.17 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00513/0.7579, allocations: 1.761 MB / 0.6972 GB, free: 56.17 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005513/0.7634, allocations: 2.682 MB / 0.6998 GB, free: 56.16 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00149/0.765, allocations: 203.2 kB / 0.7 GB, free: 56.16 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003884/0.7689, allocations: 1.266 MB / 0.7012 GB, free: 56.16 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004274/0.7732, allocations: 2.416 MB / 0.7036 GB, free: 56.16 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005753/0.779, allocations: 2.691 MB / 0.7062 GB, free: 56.13 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009647/0.7886, allocations: 7.972 MB / 0.714 GB, free: 54.17 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.7887, allocations: 4 kB / 0.714 GB, free: 54.17 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7887, allocations: 0 / 0.714 GB, free: 54.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003937/0.7891, allocations: 0 / 0.714 GB, free: 54.17 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: 2101 * Number of variables: 2101 Notification: Performance of Generate backend data structure: time 0.01382/0.8029, allocations: 5.859 MB / 0.7197 GB, free: 50.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.803, allocations: 10.88 kB / 0.7197 GB, free: 50.67 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002981/0.806, allocations: 0.9924 MB / 0.7207 GB, free: 50.39 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03645/0.8424, allocations: 6.25 MB / 0.7268 GB, free: 47.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008606/0.8511, allocations: 4.287 MB / 0.731 GB, free: 44.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002457/0.8514, allocations: 352.5 kB / 0.7313 GB, free: 44.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001545/0.8529, allocations: 466.3 kB / 0.7317 GB, free: 44.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02336/0.8763, allocations: 14.61 MB / 0.746 GB, free: 32.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.8765, allocations: 57.92 kB / 0.7461 GB, free: 32.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006431/0.8772, allocations: 217.9 kB / 0.7463 GB, free: 32.82 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004162/0.8813, allocations: 2.788 MB / 0.749 GB, free: 30.5 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02325/0.9046, allocations: 12.48 MB / 0.7612 GB, free: 21.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05715/0.9618, allocations: 53.26 MB / 0.8132 GB, free: 9.578 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0144/0.9762, allocations: 6.107 MB / 0.8192 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004218/0.9805, allocations: 3.724 MB / 0.8228 GB, free: 1.805 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0198/1, allocations: 12.87 MB / 0.8354 GB, free: 4.902 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/1, allocations: 66.69 kB / 0.8354 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=228): time 4.92e-06/1, allocations: 0 / 0.8354 GB, free: 4.832 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270): time 0.0746/1.075, allocations: 27.84 MB / 0.8626 GB, free: 8.871 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.588e-05/1.075, allocations: 209.9 kB / 0.8628 GB, free: 8.625 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008615/1.084, allocations: 5.022 MB / 0.8677 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007043/1.084, allocations: 69.53 kB / 0.8678 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.003087/1.088, allocations: 4.023 MB / 0.8717 GB, free: 15.53 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001431/1.089, allocations: 1.015 MB / 0.8727 GB, free: 14.52 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008759/1.09, allocations: 144 kB / 0.8728 GB, free: 14.38 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006247/1.091, allocations: 0.6093 MB / 0.8734 GB, free: 13.77 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00503/1.096, allocations: 3.055 MB / 0.8764 GB, free: 10.71 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008211/1.104, allocations: 7.174 MB / 0.8834 GB, free: 1.59 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01344/1.117, allocations: 11.1 MB / 0.8943 GB, free: 5.082 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001332/1.118, allocations: 40 kB / 0.8943 GB, free: 5.043 MB / 0.5886 GB Notification: Performance of matching and sorting (n=934) (initialization): time 0.2463/1.364, allocations: 11.56 MB / 0.9056 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001916/1.364, allocations: 72.34 kB / 0.9057 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/1.364, allocations: 143.6 kB / 0.9058 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00419/1.368, allocations: 1.737 MB / 0.9075 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005388/1.374, allocations: 1.658 MB / 0.9091 GB, free: 218.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/1.388, allocations: 11.98 MB / 0.9208 GB, free: 213 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006179/1.394, allocations: 427.2 kB / 0.9212 GB, free: 212.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00243/1.396, allocations: 437.4 kB / 0.9216 GB, free: 212.8 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 59 (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,fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],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],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (862): * Single equations (assignments): 857 * 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.006937/1.403, allocations: 2.796 MB / 0.9244 GB, free: 211.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/1.404, allocations: 460 kB / 0.9248 GB, free: 211.7 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/1.418, allocations: 6.253 MB / 0.9309 GB, free: 209.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.708e-05/1.418, allocations: 32.05 kB / 0.9309 GB, free: 209.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-05/1.418, allocations: 11.22 kB / 0.931 GB, free: 209.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.047e-05/1.418, allocations: 13.72 kB / 0.931 GB, free: 209.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02801/1.446, allocations: 13.82 MB / 0.9445 GB, free: 204.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/1.446, allocations: 0 / 0.9445 GB, free: 204.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/1.448, allocations: 452.2 kB / 0.9449 GB, free: 204.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003562/1.452, allocations: 1.528 MB / 0.9464 GB, free: 204.4 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003367/1.452, allocations: 48.41 kB / 0.9464 GB, free: 204.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/1.464, allocations: 11.26 MB / 0.9574 GB, free: 198.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.464, allocations: 0 / 0.9574 GB, free: 198.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.478, allocations: 10.05 MB / 0.9672 GB, free: 192.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/1.479, allocations: 0.5049 MB / 0.9677 GB, free: 192.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.48, allocations: 46.55 kB / 0.9678 GB, free: 192.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002502/1.483, allocations: 192.6 kB / 0.968 GB, free: 192 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007666/1.483, allocations: 166 kB / 0.9681 GB, free: 191.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002705/1.484, allocations: 64 kB / 0.9682 GB, free: 191.9 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004648/1.488, allocations: 3.151 MB / 0.9713 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.8e-07/1.488, allocations: 0 / 0.9713 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006194/1.495, allocations: 1.423 MB / 0.9726 GB, free: 187.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 (212): * Single equations (assignments): 207 * 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.01269/1.507, allocations: 10.72 MB / 0.9831 GB, free: 177.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01047/1.518, allocations: 7.631 MB / 0.9906 GB, free: 170 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.518, allocations: 0 / 0.9906 GB, free: 170 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004846/1.523, allocations: 3.233 MB / 0.9937 GB, free: 166.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004533/1.527, allocations: 0.6422 MB / 0.9944 GB, free: 166.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08033/1.608, allocations: 51.74 MB / 1.045 GB, free: 109.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006265/1.614, allocations: 4.377 MB / 1.049 GB, free: 105.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/1.618, allocations: 2.772 MB / 1.052 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of SimCode: time 1.373e-06/1.618, allocations: 0 / 1.052 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.331/10.95, allocations: 153.3 MB / 1.202 GB, free: 201.4 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameForcesAndTorques3/FrameForcesAndTorques3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches