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.002164/0.002164, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.157/2.157, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001106, allocations: 89.34 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2945/0.2945, allocations: 43.48 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.294e-05/2.316e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.411, allocations: 58.86 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.205/0.6161, allocations: 106.3 MB / 0.5698 GB, free: 8.871 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.6165, allocations: 79.41 kB / 0.5699 GB, free: 8.797 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8853/1.502, allocations: 128.6 MB / 0.6955 GB, free: 101.9 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.414e-06/1.502, allocations: 0 / 0.6955 GB, free: 101.9 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004002/1.502, allocations: 136.9 kB / 0.6956 GB, free: 101.9 MB / 475.1 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.02768/1.53, allocations: 6.373 MB / 0.7018 GB, free: 98.75 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/1.53, allocations: 10.06 kB / 0.7018 GB, free: 98.75 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05228/1.582, allocations: 7.102 MB / 0.7088 GB, free: 95.62 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.609, allocations: 7.257 MB / 0.7158 GB, free: 91.64 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000501/1.61, allocations: 217.6 kB / 0.7161 GB, free: 91.64 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004011/1.614, allocations: 391.8 kB / 0.7164 GB, free: 91.27 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02428/1.638, allocations: 9.639 MB / 0.7258 GB, free: 81.63 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03873/1.677, allocations: 14.16 MB / 0.7397 GB, free: 66.29 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004448/1.678, allocations: 79.33 kB / 0.7397 GB, free: 66.21 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003407/1.681, allocations: 36 kB / 0.7398 GB, free: 66.18 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003485/1.685, allocations: 1.577 MB / 0.7413 GB, free: 64.61 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1025/1.787, allocations: 64 MB / 0.8038 GB, free: 15.26 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01332/1.801, allocations: 5.932 MB / 0.8096 GB, free: 9.184 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009199/1.81, allocations: 4.068 MB / 0.8136 GB, free: 5.098 MB / 491.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001128/1.811, allocations: 0.56 MB / 0.8141 GB, free: 4.461 MB / 491.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.296e-05/1.811, allocations: 72.52 kB / 0.8142 GB, free: 4.379 MB / 491.1 MB Notification: Performance of pre-optimization done (n=315): time 7.324e-06/1.811, allocations: 0 / 0.8142 GB, free: 4.379 MB / 491.1 MB Notification: Performance of matching and sorting (n=359): time 0.4733/2.284, allocations: 28.67 MB / 0.8422 GB, free: 119.5 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/2.285, allocations: 218.3 kB / 0.8424 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0128/2.297, allocations: 3.911 MB / 0.8462 GB, free: 118.9 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001081/2.299, allocations: 26.58 kB / 0.8462 GB, free: 118.8 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004726/2.303, allocations: 4.383 MB / 0.8505 GB, free: 116.2 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002652/2.306, allocations: 1.278 MB / 0.8518 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001665/2.308, allocations: 0 / 0.8518 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.001091/2.309, allocations: 0.6737 MB / 0.8524 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01046/2.319, allocations: 3.511 MB / 0.8559 GB, free: 115.1 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0154/2.335, allocations: 8.179 MB / 0.8639 GB, free: 109.1 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/2.347, allocations: 5.271 MB / 0.869 GB, free: 109.1 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003614/2.348, allocations: 47.59 kB / 0.869 GB, free: 109.1 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03676/2.385, allocations: 12.09 MB / 0.8809 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001552/2.385, allocations: 76.78 kB / 0.8809 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002773/2.385, allocations: 163.1 kB / 0.8811 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007068/2.392, allocations: 1.716 MB / 0.8828 GB, free: 105.1 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01355/2.406, allocations: 2.023 MB / 0.8847 GB, free: 104.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02168/2.427, allocations: 10.9 MB / 0.8954 GB, free: 99.14 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01097/2.438, allocations: 341 kB / 0.8957 GB, free: 99.13 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002636/2.441, allocations: 0.5002 MB / 0.8962 GB, free: 99.06 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 752 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1044 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004352/2.446, allocations: 0.5266 MB / 0.8967 GB, free: 98.62 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02163/2.467, allocations: 7.147 MB / 0.9037 GB, free: 96.16 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00235/2.47, allocations: 467.2 kB / 0.9041 GB, free: 95.91 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0228/2.492, allocations: 7.184 MB / 0.9111 GB, free: 93.36 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.867e-05/2.493, allocations: 35.72 kB / 0.9112 GB, free: 93.36 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.621e-05/2.493, allocations: 10.66 kB / 0.9112 GB, free: 93.36 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.569e-05/2.493, allocations: 17.66 kB / 0.9112 GB, free: 93.36 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0486/2.541, allocations: 15.04 MB / 0.9259 GB, free: 84.45 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.746e-05/2.541, allocations: 4 kB / 0.9259 GB, free: 84.45 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006532/2.548, allocations: 0.6183 MB / 0.9265 GB, free: 83.95 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006431/2.554, allocations: 1.409 MB / 0.9279 GB, free: 82.96 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001059/2.556, allocations: 15.23 kB / 0.9279 GB, free: 82.95 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01906/2.575, allocations: 9.888 MB / 0.9375 GB, free: 74.09 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/2.575, allocations: 0 / 0.9375 GB, free: 74.09 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02809/2.603, allocations: 11.87 MB / 0.9491 GB, free: 63.67 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004477/2.607, allocations: 1.041 MB / 0.9502 GB, free: 62.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002052/2.609, allocations: 7.984 kB / 0.9502 GB, free: 62.7 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005809/2.615, allocations: 201.2 kB / 0.9504 GB, free: 62.59 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001427/2.617, allocations: 208.1 kB / 0.9506 GB, free: 62.46 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006767/2.617, allocations: 100.3 kB / 0.9507 GB, free: 62.36 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.006692/2.624, allocations: 2.621 MB / 0.9532 GB, free: 60.09 MB / 0.4952 GB Notification: Performance of sort global known variables: time 6.31e-07/2.624, allocations: 0 / 0.9532 GB, free: 60.09 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01179/2.636, allocations: 1.412 MB / 0.9546 GB, free: 58.68 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 300 * 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.02976/2.666, allocations: 12.83 MB / 0.9671 GB, free: 47.34 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0211/2.687, allocations: 8.869 MB / 0.9758 GB, free: 38.49 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/2.687, allocations: 4 kB / 0.9758 GB, free: 38.48 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.009566/2.697, allocations: 3.684 MB / 0.9794 GB, free: 34.78 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004907/2.702, allocations: 496.7 kB / 0.9799 GB, free: 34.32 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0498/2.751, allocations: 15.56 MB / 0.9951 GB, free: 18.7 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01131/2.763, allocations: 4.936 MB / 0.9999 GB, free: 13.76 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008545/2.771, allocations: 3.135 MB / 1.003 GB, free: 10.62 MB / 0.4952 GB Notification: Performance of SimCode: time 1.854e-06/2.771, allocations: 0 / 1.003 GB, free: 10.62 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.441/8.213, allocations: 179.1 MB / 1.178 GB, free: 18.84 MB / 0.5108 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