Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 180.3 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.3 MB / 236 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 95.17 kB / 287 MB, free: 192 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2105/0.2105, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.362e-05, allocations: 4.219 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1455, allocations: 61.91 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4785/0.6241, allocations: 112.3 MB / 0.6114 GB, free: 8.949 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.6244, allocations: 80.58 kB / 0.6115 GB, free: 8.871 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9144/1.539, allocations: 222.2 MB / 0.8285 GB, free: 77.74 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.484e-06/1.539, allocations: 4 kB / 0.8285 GB, free: 77.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0007397/1.54, allocations: 243.9 kB / 0.8287 GB, free: 77.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.04052/1.58, allocations: 11.53 MB / 0.84 GB, free: 65.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 7.772e-05/1.58, allocations: 12.03 kB / 0.84 GB, free: 65.87 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01067/1.591, allocations: 1.989 MB / 0.8419 GB, free: 63.87 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05045/1.641, allocations: 12.62 MB / 0.8543 GB, free: 51.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03021/1.672, allocations: 12.21 MB / 0.8662 GB, free: 38.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008269/1.673, allocations: 0.8746 MB / 0.867 GB, free: 38.04 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00577/1.678, allocations: 1.164 MB / 0.8682 GB, free: 36.87 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06663/1.745, allocations: 27.51 MB / 0.895 GB, free: 7.188 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007293/1.746, allocations: 154.6 kB / 0.8952 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00424/1.75, allocations: 0.5388 MB / 0.8957 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003438/1.754, allocations: 2.538 MB / 0.8982 GB, free: 3.949 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.8265/2.58, allocations: 22.08 MB / 0.9198 GB, free: 78.91 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1615/2.742, allocations: 119.5 MB / 1.036 GB, free: 11.36 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03312/2.775, allocations: 12.83 MB / 1.049 GB, free: 7.832 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009531/2.784, allocations: 7.086 MB / 1.056 GB, free: 4.898 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03342/2.818, allocations: 17.29 MB / 1.073 GB, free: 12.82 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/2.818, allocations: 91.59 kB / 1.073 GB, free: 12.75 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=459): time 9.668e-06/2.818, allocations: 0 / 1.073 GB, free: 12.75 MB / 0.5418 GB Notification: Performance of matching and sorting (n=543): time 0.1673/2.985, allocations: 54.62 MB / 1.126 GB, free: 5.906 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002857/2.986, allocations: 367.5 kB / 1.127 GB, free: 5.477 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4339/3.42, allocations: 10.39 MB / 1.137 GB, free: 132.4 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001446/3.421, allocations: 110.6 kB / 1.137 GB, free: 132.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.009732/3.431, allocations: 7.885 MB / 1.145 GB, free: 130.4 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00357/3.434, allocations: 2.031 MB / 1.146 GB, free: 129.3 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001893/3.436, allocations: 278.3 kB / 1.147 GB, free: 129.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0008985/3.437, allocations: 0.8976 MB / 1.148 GB, free: 128.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01218/3.449, allocations: 5.731 MB / 1.153 GB, free: 128.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01758/3.467, allocations: 13.63 MB / 1.167 GB, free: 118.8 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01643/3.484, allocations: 8.735 MB / 1.175 GB, free: 118.8 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005516/3.484, allocations: 79.47 kB / 1.175 GB, free: 118.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.04951/3.534, allocations: 22.1 MB / 1.197 GB, free: 115.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003971/3.534, allocations: 131.9 kB / 1.197 GB, free: 115.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005757/3.535, allocations: 279.1 kB / 1.197 GB, free: 115.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008676/3.543, allocations: 3.269 MB / 1.2 GB, free: 115.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01344/3.557, allocations: 3.358 MB / 1.204 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.028/3.585, allocations: 22.55 MB / 1.226 GB, free: 102.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01571/3.601, allocations: 0.8247 MB / 1.226 GB, free: 102.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003776/3.605, allocations: 0.8161 MB / 1.227 GB, free: 102.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1698): * Single equations (assignments): 1691 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005613/3.61, allocations: 1.19 MB / 1.228 GB, free: 101.4 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003003/3.613, allocations: 1.001 MB / 1.229 GB, free: 100.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/3.64, allocations: 12.54 MB / 1.242 GB, free: 96.48 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/3.64, allocations: 56.77 kB / 1.242 GB, free: 96.48 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.068e-05/3.64, allocations: 18.25 kB / 1.242 GB, free: 96.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001722/3.64, allocations: 32.5 kB / 1.242 GB, free: 96.48 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0667/3.707, allocations: 28.59 MB / 1.27 GB, free: 74.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.716e-05/3.707, allocations: 12.22 kB / 1.27 GB, free: 74.78 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005928/3.713, allocations: 1.067 MB / 1.271 GB, free: 73.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007279/3.72, allocations: 2.824 MB / 1.273 GB, free: 71.98 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001623/3.722, allocations: 101.2 kB / 1.274 GB, free: 71.89 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02424/3.746, allocations: 21.13 MB / 1.294 GB, free: 52.99 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/3.746, allocations: 15.94 kB / 1.294 GB, free: 52.98 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03374/3.78, allocations: 22.52 MB / 1.316 GB, free: 32.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005078/3.785, allocations: 1.09 MB / 1.317 GB, free: 31.34 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00515/3.79, allocations: 105.5 kB / 1.317 GB, free: 31.24 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008366/3.799, allocations: 372.7 kB / 1.318 GB, free: 31 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002057/3.801, allocations: 347.2 kB / 1.318 GB, free: 30.78 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009222/3.802, allocations: 143 kB / 1.318 GB, free: 30.64 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01717/3.819, allocations: 7.308 MB / 1.325 GB, free: 24.26 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.343e-06/3.819, allocations: 0 / 1.325 GB, free: 24.26 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0187/3.838, allocations: 2.801 MB / 1.328 GB, free: 21.47 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (451): * Single equations (assignments): 444 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.4475/4.285, allocations: 23.7 MB / 1.351 GB, free: 113.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03102/4.316, allocations: 14.5 MB / 1.365 GB, free: 112.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/4.316, allocations: 0 / 1.365 GB, free: 112.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01154/4.328, allocations: 6.167 MB / 1.371 GB, free: 112 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/4.338, allocations: 1.33 MB / 1.373 GB, free: 111.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07475/4.413, allocations: 26.91 MB / 1.399 GB, free: 107.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01972/4.433, allocations: 8.165 MB / 1.407 GB, free: 106.3 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01495/4.448, allocations: 4.648 MB / 1.411 GB, free: 106 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01214/4.46, allocations: 5.793 MB / 1.417 GB, free: 101.6 MB / 0.573 GB Notification: Performance of SimCode: time 1.233e-06/4.46, allocations: 0 / 1.417 GB, free: 101.6 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7387/5.199, allocations: 221.6 MB / 1.634 GB, free: 94.73 MB / 0.5887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/5.199, allocations: 167.8 kB / 1.634 GB, free: 94.51 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/18.81, allocations: 4 kB / 1.634 GB, free: 94.51 MB / 0.5887 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat