Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",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.0016/0.001605, allocations: 182.3 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.121/2.121, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001133/0.001133, allocations: 83.27 kB / 270.9 MB, free: 8.371 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.6026/0.6026, allocations: 43.56 MB / 362.7 MB, free: 51.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000632/0.0006324, allocations: 16 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1391, allocations: 58.85 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.4567/0.5958, allocations: 76.77 MB / 0.5538 GB, free: 11.78 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.05275/0.6487, allocations: 17.41 MB / 0.5708 GB, free: 15.89 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01898/0.6677, allocations: 377.5 kB / 0.5712 GB, free: 15.84 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01503/0.6828, allocations: 3.859 MB / 0.5749 GB, free: 14.58 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04821/0.731, allocations: 10.91 MB / 0.5856 GB, free: 8.688 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00744/0.7385, allocations: 0.914 MB / 0.5865 GB, free: 7.773 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07625/0.8148, allocations: 27.26 MB / 0.6131 GB, free: 12.5 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01734/0.8322, allocations: 7.209 MB / 0.6201 GB, free: 5.254 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00465/0.8369, allocations: 1.58 MB / 0.6217 GB, free: 3.668 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00533/0.8423, allocations: 2.138 MB / 0.6238 GB, free: 1.523 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001767/0.8441, allocations: 236 kB / 0.624 GB, free: 1.293 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004478/0.8487, allocations: 1.092 MB / 0.6251 GB, free: 204 kB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004948/0.8537, allocations: 2.494 MB / 0.6275 GB, free: 13.7 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003172/0.8569, allocations: 1.31 MB / 0.6288 GB, free: 12.38 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/0.8732, allocations: 8.931 MB / 0.6375 GB, free: 3.426 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.8733, allocations: 0 / 0.6375 GB, free: 3.426 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.544e-05/0.8733, allocations: 3.938 kB / 0.6375 GB, free: 3.422 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000398/0.8737, allocations: 0 / 0.6375 GB, free: 3.422 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2377 * Number of variables: 2377 Notification: Performance of Generate backend data structure: time 0.02514/0.8989, allocations: 6.636 MB / 0.644 GB, free: 12.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.8989, allocations: 8.031 kB / 0.644 GB, free: 12.7 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004174/0.9031, allocations: 1.108 MB / 0.6451 GB, free: 11.58 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08895/0.9921, allocations: 8.249 MB / 0.6531 GB, free: 3.309 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/1.01, allocations: 4.559 MB / 0.6576 GB, free: 14.69 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006077/1.01, allocations: 386.8 kB / 0.6579 GB, free: 14.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002718/1.013, allocations: 0.4957 MB / 0.6584 GB, free: 13.81 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3946/1.408, allocations: 16.46 MB / 0.6745 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004642/1.408, allocations: 60.72 kB / 0.6746 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002715/1.411, allocations: 238.4 kB / 0.6748 GB, free: 134.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01093/1.422, allocations: 3.157 MB / 0.6779 GB, free: 134.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04864/1.471, allocations: 14.2 MB / 0.6917 GB, free: 131.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1162/1.587, allocations: 58.93 MB / 0.7493 GB, free: 92.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03057/1.617, allocations: 7.233 MB / 0.7563 GB, free: 88.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03957/1.657, allocations: 15.17 MB / 0.7712 GB, free: 73.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.333e-05/1.657, allocations: 68.56 kB / 0.7712 GB, free: 73.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=306): time 7.524e-06/1.657, allocations: 0 / 0.7712 GB, free: 73.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=348): time 0.1423/1.8, allocations: 32.3 MB / 0.8028 GB, free: 41.03 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.843e-05/1.8, allocations: 222.2 kB / 0.803 GB, free: 40.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01126/1.811, allocations: 5.599 MB / 0.8084 GB, free: 35.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001142/1.812, allocations: 81.45 kB / 0.8085 GB, free: 35.11 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00331/1.815, allocations: 4.217 MB / 0.8126 GB, free: 30.89 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002221/1.818, allocations: 1.277 MB / 0.8139 GB, free: 29.62 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001316/1.819, allocations: 160 kB / 0.814 GB, free: 29.47 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006072/1.82, allocations: 0.6578 MB / 0.8147 GB, free: 28.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00978/1.83, allocations: 3.674 MB / 0.8183 GB, free: 25.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01263/1.842, allocations: 8.116 MB / 0.8262 GB, free: 14.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/1.855, allocations: 5.356 MB / 0.8314 GB, free: 9.422 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001358/1.855, allocations: 44 kB / 0.8315 GB, free: 9.379 MB / 490.7 MB Notification: Performance of matching and sorting (n=1066) (initialization): time 0.03958/1.895, allocations: 13.02 MB / 0.8442 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/1.895, allocations: 68 kB / 0.8443 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002734/1.896, allocations: 156 kB / 0.8444 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008604/1.904, allocations: 1.773 MB / 0.8461 GB, free: 10.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01413/1.918, allocations: 1.938 MB / 0.848 GB, free: 8.363 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02891/1.947, allocations: 12.33 MB / 0.8601 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/1.957, allocations: 499.3 kB / 0.8605 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002354/1.96, allocations: 486.6 kB / 0.861 GB, free: 10.81 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 51 (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 (994): * Single equations (assignments): 989 * 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.01035/1.97, allocations: 3.086 MB / 0.864 GB, free: 7.711 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001743/1.972, allocations: 0.5013 MB / 0.8645 GB, free: 7.203 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3889/2.361, allocations: 7.643 MB / 0.872 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.151e-05/2.361, allocations: 35.53 kB / 0.872 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.734e-05/2.361, allocations: 9.156 kB / 0.872 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001156/2.361, allocations: 20.22 kB / 0.872 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05548/2.417, allocations: 16.42 MB / 0.8881 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-05/2.417, allocations: 0 / 0.8881 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006546/2.423, allocations: 0.6126 MB / 0.8887 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007059/2.43, allocations: 1.534 MB / 0.8902 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001024/2.431, allocations: 66.23 kB / 0.8902 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02337/2.455, allocations: 11.51 MB / 0.9015 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/2.455, allocations: 3.25 kB / 0.9015 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03532/2.49, allocations: 12.29 MB / 0.9135 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004651/2.495, allocations: 1.13 MB / 0.9146 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00185/2.497, allocations: 57.69 kB / 0.9146 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005715/2.503, allocations: 251 kB / 0.9149 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001458/2.504, allocations: 198.8 kB / 0.9151 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005336/2.505, allocations: 87.66 kB / 0.9152 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01032/2.515, allocations: 3.552 MB / 0.9186 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/2.515, allocations: 0 / 0.9186 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01165/2.527, allocations: 1.646 MB / 0.9202 GB, free: 138 MB / 0.5105 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 (294): * Single equations (assignments): 289 * 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.0367/2.563, allocations: 13.17 MB / 0.9331 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02224/2.586, allocations: 9.064 MB / 0.9419 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/2.586, allocations: 3.281 kB / 0.9419 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0114/2.597, allocations: 3.876 MB / 0.9457 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006011/2.603, allocations: 0.6195 MB / 0.9463 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5204/3.124, allocations: 166.2 MB / 1.109 GB, free: 122 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01056/3.134, allocations: 4.945 MB / 1.113 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008337/3.143, allocations: 3.139 MB / 1.117 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.663e-06/3.143, allocations: 2.875 kB / 1.117 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.621/8.764, allocations: 183.1 MB / 1.295 GB, free: 158.4 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat