Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques",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.00226/0.00226, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.008/2.008, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001121/0.001121, allocations: 82.77 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2938/0.2938, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.571e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5067/0.6217, allocations: 105.9 MB / 0.5763 GB, free: 13.54 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.6221, allocations: 77.19 kB / 0.5764 GB, free: 13.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.988/1.61, allocations: 143.7 MB / 0.7167 GB, free: 93.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.534e-06/1.61, allocations: 0 / 0.7167 GB, free: 93.07 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005689/1.611, allocations: 141.5 kB / 0.7168 GB, free: 93.07 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2473 * Number of variables: 2473 Notification: Performance of Generate backend data structure: time 0.03311/1.644, allocations: 6.854 MB / 0.7235 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.073e-05/1.644, allocations: 9.875 kB / 0.7235 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006441/1.65, allocations: 1.232 MB / 0.7247 GB, free: 90.36 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07175/1.722, allocations: 9.543 MB / 0.734 GB, free: 89.87 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03337/1.756, allocations: 8.845 MB / 0.7427 GB, free: 88.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008907/1.757, allocations: 0.5276 MB / 0.7432 GB, free: 88.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004758/1.761, allocations: 0.7144 MB / 0.7439 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05228/1.814, allocations: 16.54 MB / 0.7601 GB, free: 84.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006585/1.814, allocations: 102.1 kB / 0.7601 GB, free: 84.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003689/1.818, allocations: 344.4 kB / 0.7605 GB, free: 84.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003531/1.822, allocations: 1.533 MB / 0.762 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04199/1.864, allocations: 13.11 MB / 0.7748 GB, free: 84.83 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1158/1.98, allocations: 72.66 MB / 0.8457 GB, free: 29.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02276/2.002, allocations: 5.867 MB / 0.8515 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006359/2.009, allocations: 3.085 MB / 0.8545 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003755/2.009, allocations: 43.25 kB / 0.8545 GB, free: 22.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/2.009, allocations: 64.12 kB / 0.8546 GB, free: 22.03 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=249): time 6.822e-06/2.009, allocations: 0 / 0.8546 GB, free: 22.03 MB / 0.4948 GB Notification: Performance of matching and sorting (n=267): time 0.08816/2.098, allocations: 19.5 MB / 0.8736 GB, free: 4.934 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/2.098, allocations: 261.1 kB / 0.8739 GB, free: 4.621 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01702/2.115, allocations: 6.161 MB / 0.8799 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007612/2.116, allocations: 65.7 kB / 0.88 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006213/2.122, allocations: 4.806 MB / 0.8846 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002111/2.124, allocations: 1.025 MB / 0.8856 GB, free: 9.836 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00146/2.125, allocations: 172 kB / 0.8858 GB, free: 9.668 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009329/2.126, allocations: 0.6806 MB / 0.8865 GB, free: 9.082 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009155/2.136, allocations: 2.874 MB / 0.8893 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01506/2.151, allocations: 8.157 MB / 0.8972 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/2.164, allocations: 4.81 MB / 0.9019 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002194/2.164, allocations: 56 kB / 0.902 GB, free: 7.941 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1125) (initialization): time 0.4288/2.593, allocations: 11.14 MB / 0.9129 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002173/2.593, allocations: 85.55 kB / 0.913 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004408/2.594, allocations: 188.2 kB / 0.9131 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004154/2.598, allocations: 0.8347 MB / 0.914 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01373/2.612, allocations: 1.993 MB / 0.9159 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/2.627, allocations: 8.493 MB / 0.9242 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01101/2.638, allocations: 473.9 kB / 0.9246 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002498/2.641, allocations: 0.5187 MB / 0.9252 GB, free: 102.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 57 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1059): * Single equations (assignments): 1053 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003616/2.645, allocations: 0.7779 MB / 0.9259 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001774/2.646, allocations: 0.5948 MB / 0.9265 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/2.661, allocations: 4.459 MB / 0.9308 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.603e-05/2.661, allocations: 30.09 kB / 0.9309 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.939e-05/2.661, allocations: 10.88 kB / 0.9309 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.873e-05/2.661, allocations: 16.67 kB / 0.9309 GB, free: 102.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03696/2.698, allocations: 11.6 MB / 0.9422 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.574e-05/2.699, allocations: 3.938 kB / 0.9422 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004623/2.703, allocations: 437.7 kB / 0.9427 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002675/2.706, allocations: 0.5233 MB / 0.9432 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006947/2.707, allocations: 50.22 kB / 0.9432 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/2.719, allocations: 7.575 MB / 0.9506 GB, free: 97.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/2.719, allocations: 2.375 kB / 0.9506 GB, free: 97.52 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01963/2.739, allocations: 7.885 MB / 0.9583 GB, free: 96.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004505/2.743, allocations: 1.015 MB / 0.9593 GB, free: 96.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002275/2.746, allocations: 41 kB / 0.9593 GB, free: 96.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005927/2.751, allocations: 154.2 kB / 0.9595 GB, free: 96.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.753, allocations: 164.4 kB / 0.9596 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003422/2.753, allocations: 68.86 kB / 0.9597 GB, free: 96.49 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01265/2.766, allocations: 4.372 MB / 0.964 GB, free: 96.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.453e-06/2.766, allocations: 2.562 kB / 0.964 GB, free: 96.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01221/2.778, allocations: 1.561 MB / 0.9655 GB, free: 96.25 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.01966/2.798, allocations: 8.719 MB / 0.974 GB, free: 93.35 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0266/2.824, allocations: 7.36 MB / 0.9812 GB, free: 91.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/2.825, allocations: 3.531 kB / 0.9812 GB, free: 91.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008823/2.833, allocations: 2.483 MB / 0.9836 GB, free: 89.99 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01032/2.844, allocations: 0.7711 MB / 0.9844 GB, free: 89.66 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07928/2.923, allocations: 15.5 MB / 0.9995 GB, free: 84.04 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01944/2.943, allocations: 5.215 MB / 1.005 GB, free: 82.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01318/2.956, allocations: 3.438 MB / 1.008 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of SimCode: time 2.695e-06/2.956, allocations: 0 / 1.008 GB, free: 79.54 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.092/9.048, allocations: 221.7 MB / 1.224 GB, free: 73.24 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat