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.002119/0.002119, allocations: 177 kB / 17.06 MB, free: 5.098 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.411/1.411, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009697/0.0009697, allocations: 88.48 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3674/0.3674, allocations: 44.22 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000414/0.0004141, allocations: 8 kB / 460 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3838, allocations: 61.91 MB / 0.5096 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.5236, allocations: 112.3 MB / 0.6194 GB, free: 14.72 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.5239, allocations: 79.94 kB / 0.6194 GB, free: 14.65 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9196/1.444, allocations: 222 MB / 0.8362 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.258e-06/1.444, allocations: 0 / 0.8362 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001366/1.445, allocations: 240 kB / 0.8364 GB, free: 13.74 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.05594/1.501, allocations: 12.5 MB / 0.8486 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.57e-05/1.501, allocations: 8.031 kB / 0.8486 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01228/1.513, allocations: 1.997 MB / 0.8506 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05526/1.569, allocations: 12.6 MB / 0.8629 GB, free: 2.484 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04006/1.609, allocations: 12.25 MB / 0.8748 GB, free: 6.141 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001283/1.61, allocations: 0.8668 MB / 0.8757 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006702/1.617, allocations: 1.175 MB / 0.8768 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4595/2.076, allocations: 27.72 MB / 0.9039 GB, free: 58.06 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001392/2.078, allocations: 138.6 kB / 0.904 GB, free: 58.06 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00701/2.085, allocations: 0.5491 MB / 0.9046 GB, free: 58.06 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004975/2.09, allocations: 2.536 MB / 0.9071 GB, free: 58.03 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0575/2.148, allocations: 22.4 MB / 0.9289 GB, free: 57.91 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1581/2.306, allocations: 119.5 MB / 1.046 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03309/2.339, allocations: 12.89 MB / 1.058 GB, free: 9.816 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03755/2.376, allocations: 17.31 MB / 1.075 GB, free: 13.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.702e-05/2.377, allocations: 80.62 kB / 1.075 GB, free: 13.57 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 8.135e-06/2.377, allocations: 6.562 kB / 1.075 GB, free: 13.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.5424/2.919, allocations: 62.52 MB / 1.136 GB, free: 99.75 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/2.919, allocations: 370.1 kB / 1.137 GB, free: 99.37 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02433/2.944, allocations: 10.26 MB / 1.147 GB, free: 98.66 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001516/2.945, allocations: 110.1 kB / 1.147 GB, free: 98.63 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008082/2.953, allocations: 7.885 MB / 1.154 GB, free: 94.95 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003472/2.957, allocations: 2.029 MB / 1.156 GB, free: 93.77 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002705/2.96, allocations: 279 kB / 1.157 GB, free: 93.77 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001238/2.961, allocations: 0.8954 MB / 1.158 GB, free: 93.43 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/2.971, allocations: 5.841 MB / 1.163 GB, free: 93.4 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01579/2.987, allocations: 13.73 MB / 1.177 GB, free: 83.31 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01706/3.004, allocations: 8.749 MB / 1.185 GB, free: 82.29 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006192/3.005, allocations: 78.66 kB / 1.185 GB, free: 82.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.05102/3.056, allocations: 22.32 MB / 1.207 GB, free: 75.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007881/3.057, allocations: 125.4 kB / 1.207 GB, free: 75.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008389/3.058, allocations: 278 kB / 1.207 GB, free: 75.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009284/3.067, allocations: 3.282 MB / 1.211 GB, free: 74.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01297/3.08, allocations: 3.359 MB / 1.214 GB, free: 74.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02766/3.108, allocations: 23.21 MB / 1.237 GB, free: 57.58 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01484/3.123, allocations: 0.8239 MB / 1.237 GB, free: 56.89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003889/3.126, allocations: 0.8113 MB / 1.238 GB, free: 56.11 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 () * Number of clocked 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.01533/3.142, allocations: 5.296 MB / 1.243 GB, free: 51.47 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00426/3.146, allocations: 1.006 MB / 1.244 GB, free: 50.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02936/3.175, allocations: 12.63 MB / 1.257 GB, free: 40.31 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-05/3.176, allocations: 59.06 kB / 1.257 GB, free: 40.26 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.933e-05/3.176, allocations: 19.31 kB / 1.257 GB, free: 40.24 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001464/3.176, allocations: 22.27 kB / 1.257 GB, free: 40.24 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06625/3.242, allocations: 28.69 MB / 1.285 GB, free: 17.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.599e-05/3.242, allocations: 8 kB / 1.285 GB, free: 17.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005595/3.248, allocations: 1.068 MB / 1.286 GB, free: 16.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00724/3.255, allocations: 2.832 MB / 1.289 GB, free: 14.45 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001678/3.257, allocations: 107.9 kB / 1.289 GB, free: 14.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4153/3.672, allocations: 21.78 MB / 1.31 GB, free: 91.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/3.672, allocations: 16.64 kB / 1.31 GB, free: 91.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03273/3.705, allocations: 22.66 MB / 1.332 GB, free: 86.87 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004694/3.71, allocations: 1.095 MB / 1.333 GB, free: 86.78 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004131/3.714, allocations: 101 kB / 1.333 GB, free: 86.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007226/3.721, allocations: 369.4 kB / 1.334 GB, free: 86.77 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001801/3.723, allocations: 356.5 kB / 1.334 GB, free: 86.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005589/3.724, allocations: 144.9 kB / 1.334 GB, free: 86.77 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01874/3.742, allocations: 7.417 MB / 1.341 GB, free: 86.48 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.11e-07/3.742, allocations: 0 / 1.341 GB, free: 86.48 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02035/3.763, allocations: 2.794 MB / 1.344 GB, free: 86.48 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 () * Number of clocked 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.03873/3.801, allocations: 23.85 MB / 1.367 GB, free: 81.06 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02716/3.829, allocations: 14.67 MB / 1.382 GB, free: 78.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-05/3.829, allocations: 7.781 kB / 1.382 GB, free: 78.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01275/3.841, allocations: 6.249 MB / 1.388 GB, free: 76.09 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01075/3.852, allocations: 1.336 MB / 1.389 GB, free: 75.54 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7093/4.562, allocations: 322.9 MB / 1.704 GB, free: 22.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0251/4.587, allocations: 8.162 MB / 1.712 GB, free: 21.7 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.02086/4.608, allocations: 4.641 MB / 1.717 GB, free: 21.61 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01611/4.624, allocations: 5.797 MB / 1.723 GB, free: 21.61 MB / 0.6511 GB Notification: Performance of SimCode: time 2.014e-06/4.624, allocations: 0 / 1.723 GB, free: 21.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7042/5.328, allocations: 222.6 MB / 1.94 GB, free: 112.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/5.328, allocations: 193.1 kB / 1.94 GB, free: 112.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/17.63, allocations: 0 / 1.94 GB, free: 112.1 MB / 0.6511 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