Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009077/0.0009077, allocations: 169.2 kB / 16.72 MB, free: 5.051 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.278/1.278, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007735/0.0007736, allocations: 81.56 kB / 271.2 MB, free: 8.258 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.2951/0.2951, allocations: 43.56 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003533, allocations: 16 kB / 432.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09674, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.2497/0.3465, allocations: 114.3 MB / 0.591 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04911/0.3957, allocations: 22.57 MB / 0.613 GB, free: 12.74 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02215/0.4178, allocations: 0.53 MB / 0.6136 GB, free: 12.21 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01683/0.4347, allocations: 6.037 MB / 0.6194 GB, free: 6.562 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04166/0.4764, allocations: 17.46 MB / 0.6365 GB, free: 5.039 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007052/0.4835, allocations: 1.307 MB / 0.6378 GB, free: 3.734 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.3067/0.7902, allocations: 67.76 MB / 0.704 GB, free: 35.43 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01272/0.803, allocations: 11.09 MB / 0.7148 GB, free: 34.26 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004603/0.8076, allocations: 2.671 MB / 0.7174 GB, free: 34.26 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00593/0.8136, allocations: 4.324 MB / 0.7216 GB, free: 33.69 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001298/0.8149, allocations: 312 kB / 0.7219 GB, free: 33.38 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00322/0.8181, allocations: 1.372 MB / 0.7232 GB, free: 32.55 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00295/0.8211, allocations: 3.735 MB / 0.7269 GB, free: 29.83 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00441/0.8255, allocations: 4.058 MB / 0.7309 GB, free: 28.4 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009247/0.8348, allocations: 11.89 MB / 0.7425 GB, free: 18.07 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8348, allocations: 4 kB / 0.7425 GB, free: 18.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.8348, allocations: 0 / 0.7425 GB, free: 18.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003927/0.8352, allocations: 0 / 0.7425 GB, free: 18.07 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.01658/0.8518, allocations: 8.571 MB / 0.7508 GB, free: 10.18 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.8519, allocations: 8.031 kB / 0.7509 GB, free: 10.18 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003613/0.8555, allocations: 1.391 MB / 0.7522 GB, free: 9.352 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06421/0.9197, allocations: 10.83 MB / 0.7628 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/0.9348, allocations: 8.095 MB / 0.7707 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.9352, allocations: 0.4922 MB / 0.7712 GB, free: 9.301 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/0.9371, allocations: 0.6632 MB / 0.7718 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03377/0.9709, allocations: 19.65 MB / 0.791 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000305/0.9713, allocations: 81.84 kB / 0.7911 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00122/0.9725, allocations: 318.7 kB / 0.7914 GB, free: 9.523 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005919/0.9784, allocations: 3.605 MB / 0.7949 GB, free: 6.562 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03032/1.009, allocations: 16.2 MB / 0.8107 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0839/1.093, allocations: 72.21 MB / 0.8812 GB, free: 14.19 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01952/1.112, allocations: 8.245 MB / 0.8893 GB, free: 5.793 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005576/1.118, allocations: 4.298 MB / 0.8935 GB, free: 1.488 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007089/1.119, allocations: 0.667 MB / 0.8941 GB, free: 0.7305 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.222e-05/1.119, allocations: 72.42 kB / 0.8942 GB, free: 0.6562 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=311): time 6.141e-06/1.119, allocations: 0 / 0.8942 GB, free: 0.6562 MB / 0.5886 GB Notification: Performance of matching and sorting (n=335): time 0.3799/1.499, allocations: 32.01 MB / 0.9255 GB, free: 225.2 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/1.499, allocations: 294.2 kB / 0.9258 GB, free: 224.9 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009776/1.509, allocations: 7.817 MB / 0.9334 GB, free: 222.2 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.0006891/1.509, allocations: 72.27 kB / 0.9335 GB, free: 222.1 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00345/1.513, allocations: 5.847 MB / 0.9392 GB, free: 217.6 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001505/1.514, allocations: 1.265 MB / 0.9404 GB, free: 216.7 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005271/1.515, allocations: 199.2 kB / 0.9406 GB, free: 216.5 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0005034/1.515, allocations: 0.7121 MB / 0.9413 GB, free: 216.1 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005522/1.521, allocations: 3.65 MB / 0.9448 GB, free: 214.8 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008137/1.529, allocations: 9.322 MB / 0.954 GB, free: 206 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01241/1.541, allocations: 14.08 MB / 0.9677 GB, free: 194.8 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001257/1.542, allocations: 60.97 kB / 0.9678 GB, free: 194.8 MB / 0.5887 GB Notification: Performance of matching and sorting (n=1254) (initialization): time 0.02041/1.562, allocations: 13.77 MB / 0.9812 GB, free: 187.2 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/1.562, allocations: 88 kB / 0.9813 GB, free: 187.1 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/1.562, allocations: 200 kB / 0.9815 GB, free: 186.9 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/1.565, allocations: 1.305 MB / 0.9828 GB, free: 185.8 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006596/1.572, allocations: 2.25 MB / 0.985 GB, free: 183.9 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/1.583, allocations: 12.71 MB / 0.9974 GB, free: 172 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007788/1.591, allocations: 0.5361 MB / 0.9979 GB, free: 171.5 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001286/1.592, allocations: 0.5717 MB / 0.9984 GB, free: 171 MB / 0.5887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 (1174): * Single equations (assignments): 1167 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005646/1.598, allocations: 3.882 MB / 1.002 GB, free: 167.3 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/1.599, allocations: 0.6787 MB / 1.003 GB, free: 166.6 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008884/1.608, allocations: 6.497 MB / 1.009 GB, free: 160.1 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.619e-05/1.608, allocations: 37.41 kB / 1.009 GB, free: 160.1 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/1.608, allocations: 8 kB / 1.009 GB, free: 160 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/1.608, allocations: 19.94 kB / 1.009 GB, free: 160 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02236/1.63, allocations: 15.89 MB / 1.025 GB, free: 144.2 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/1.63, allocations: 7.938 kB / 1.025 GB, free: 144.1 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002485/1.633, allocations: 0.5575 MB / 1.025 GB, free: 143.6 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002329/1.635, allocations: 0.9951 MB / 1.026 GB, free: 142.6 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/1.635, allocations: 61.23 kB / 1.026 GB, free: 142.5 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009354/1.645, allocations: 11.56 MB / 1.038 GB, free: 130.5 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.645, allocations: 8.953 kB / 1.038 GB, free: 130.4 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/1.657, allocations: 10.54 MB / 1.048 GB, free: 119.8 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002606/1.66, allocations: 1.232 MB / 1.049 GB, free: 118.6 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/1.66, allocations: 66.81 kB / 1.049 GB, free: 118.5 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002581/1.663, allocations: 207.8 kB / 1.049 GB, free: 118.3 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000673/1.664, allocations: 194.3 kB / 1.05 GB, free: 118.1 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002134/1.664, allocations: 87.98 kB / 1.05 GB, free: 118 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.006219/1.67, allocations: 4.993 MB / 1.055 GB, free: 113 MB / 0.5887 GB Notification: Performance of sort global known variables: time 2.5e-07/1.67, allocations: 0 / 1.055 GB, free: 113 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.007609/1.678, allocations: 1.894 MB / 1.056 GB, free: 111.1 MB / 0.5887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01328/1.691, allocations: 11.24 MB / 1.067 GB, free: 99.8 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.01208/1.703, allocations: 9.233 MB / 1.076 GB, free: 90.56 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/1.703, allocations: 0 / 1.076 GB, free: 90.56 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.003873/1.707, allocations: 3.384 MB / 1.08 GB, free: 87.14 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006933/1.714, allocations: 0.973 MB / 1.081 GB, free: 86.17 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1012/1.815, allocations: 78.42 MB / 1.157 GB, free: 0.832 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1828/1.998, allocations: 5.949 MB / 1.163 GB, free: 218.2 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005727/2.004, allocations: 4.126 MB / 1.167 GB, free: 218.2 MB / 0.5887 GB Notification: Performance of SimCode: time 1.212e-06/2.004, allocations: 2.281 kB / 1.167 GB, free: 218.2 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.68/14.68, allocations: 291.6 MB / 1.452 GB, free: 192.7 MB / 0.5887 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches