Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009865/0.0009865, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008049/0.000805, allocations: 88.94 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.183/0.183, allocations: 45.16 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.286e-05/4.29e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09042, allocations: 63.25 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.4919, allocations: 113.2 MB / 0.622 GB, free: 12.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.4922, allocations: 85.38 kB / 0.622 GB, free: 12.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8035/1.296, allocations: 227.9 MB / 0.8446 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.355e-06/1.296, allocations: 0 / 0.8446 GB, free: 97.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008623/1.297, allocations: 243.8 kB / 0.8448 GB, free: 97.23 MB / 0.5261 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.03133/1.328, allocations: 11.7 MB / 0.8562 GB, free: 90.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/1.328, allocations: 18.38 kB / 0.8562 GB, free: 90.91 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00701/1.335, allocations: 1.992 MB / 0.8582 GB, free: 89.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04429/1.379, allocations: 12.61 MB / 0.8705 GB, free: 78.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02561/1.405, allocations: 11.32 MB / 0.8816 GB, free: 67.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008137/1.406, allocations: 0.8778 MB / 0.8824 GB, free: 66.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004743/1.411, allocations: 1.167 MB / 0.8836 GB, free: 65.73 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05975/1.47, allocations: 27.51 MB / 0.9104 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007505/1.471, allocations: 142.7 kB / 0.9106 GB, free: 35.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005451/1.477, allocations: 0.5427 MB / 0.9111 GB, free: 35.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003559/1.48, allocations: 2.534 MB / 0.9136 GB, free: 32.82 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04286/1.523, allocations: 22.09 MB / 0.9351 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4471/1.97, allocations: 119.3 MB / 1.052 GB, free: 41.39 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03061/2.001, allocations: 12.83 MB / 1.064 GB, free: 40.62 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008425/2.009, allocations: 7.082 MB / 1.071 GB, free: 40.55 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03076/2.04, allocations: 17.29 MB / 1.088 GB, free: 32.65 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.061e-05/2.04, allocations: 89.62 kB / 1.088 GB, free: 32.58 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=459): time 9.548e-06/2.04, allocations: 2.906 kB / 1.088 GB, free: 32.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=543): time 0.128/2.168, allocations: 54.4 MB / 1.141 GB, free: 7.488 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.71e-05/2.168, allocations: 373.6 kB / 1.142 GB, free: 7.055 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01761/2.186, allocations: 10.28 MB / 1.152 GB, free: 14.5 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001229/2.187, allocations: 109.4 kB / 1.152 GB, free: 14.39 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.006263/2.194, allocations: 7.884 MB / 1.159 GB, free: 7.301 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002888/2.197, allocations: 2.02 MB / 1.161 GB, free: 5.516 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/2.198, allocations: 282.4 kB / 1.162 GB, free: 5.242 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0007448/2.199, allocations: 0.8968 MB / 1.163 GB, free: 4.508 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01177/2.21, allocations: 5.97 MB / 1.168 GB, free: 0 / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3421/2.552, allocations: 13.58 MB / 1.182 GB, free: 133.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01697/2.569, allocations: 8.718 MB / 1.19 GB, free: 133.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003182/2.57, allocations: 82.66 kB / 1.19 GB, free: 133.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1812) (initialization): time 0.04348/2.613, allocations: 22.06 MB / 1.212 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001971/2.614, allocations: 125.1 kB / 1.212 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003925/2.614, allocations: 274.9 kB / 1.212 GB, free: 131.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007392/2.621, allocations: 3.278 MB / 1.215 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01111/2.632, allocations: 3.346 MB / 1.219 GB, free: 131.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0236/2.656, allocations: 22.54 MB / 1.241 GB, free: 124.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.668, allocations: 0.8211 MB / 1.241 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002934/2.671, allocations: 0.814 MB / 1.242 GB, free: 124 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * Number of states: 0 () * Number of discrete variables: 132 (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.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.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 (1692): * Single equations (assignments): 1685 * 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.00259/2.674, allocations: 1.189 MB / 1.243 GB, free: 123.3 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002132/2.676, allocations: 1.002 MB / 1.244 GB, free: 123.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01975/2.696, allocations: 12.52 MB / 1.257 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.466e-05/2.696, allocations: 60.94 kB / 1.257 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/2.696, allocations: 19.77 kB / 1.257 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.003e-05/2.696, allocations: 30.03 kB / 1.257 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0496/2.746, allocations: 28.6 MB / 1.285 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/2.746, allocations: 11.97 kB / 1.285 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004798/2.751, allocations: 1.067 MB / 1.286 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00661/2.757, allocations: 2.83 MB / 1.288 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001059/2.758, allocations: 110.9 kB / 1.289 GB, free: 106.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/2.781, allocations: 21.12 MB / 1.309 GB, free: 87.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/2.781, allocations: 11.94 kB / 1.309 GB, free: 87.61 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/2.807, allocations: 22.52 MB / 1.331 GB, free: 67.03 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003342/2.811, allocations: 1.085 MB / 1.332 GB, free: 65.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/2.812, allocations: 103.5 kB / 1.332 GB, free: 65.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004288/2.816, allocations: 364.8 kB / 1.333 GB, free: 65.65 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008597/2.817, allocations: 366.3 kB / 1.333 GB, free: 65.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003787/2.818, allocations: 141.1 kB / 1.333 GB, free: 65.28 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01072/2.828, allocations: 7.293 MB / 1.34 GB, free: 58.91 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.31e-07/2.828, allocations: 0 / 1.34 GB, free: 58.91 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01232/2.841, allocations: 2.796 MB / 1.343 GB, free: 56.12 MB / 0.5886 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.02534/2.866, allocations: 23.71 MB / 1.366 GB, free: 34.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01924/2.885, allocations: 14.48 MB / 1.38 GB, free: 20.95 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.436e-05/2.885, allocations: 0 / 1.38 GB, free: 20.95 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009522/2.895, allocations: 6.182 MB / 1.386 GB, free: 14.73 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008291/2.903, allocations: 1.318 MB / 1.388 GB, free: 13.46 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3768/3.28, allocations: 26.9 MB / 1.414 GB, free: 127.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009677/3.29, allocations: 8.164 MB / 1.422 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01294/3.303, allocations: 4.639 MB / 1.426 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009362/3.312, allocations: 5.794 MB / 1.432 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of SimCode: time 1.412e-06/3.312, allocations: 1.5 kB / 1.432 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6416/3.954, allocations: 221.4 MB / 1.648 GB, free: 107.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/3.954, allocations: 165.6 kB / 1.648 GB, free: 107.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/15.13, allocations: 4.594 kB / 1.648 GB, free: 107.5 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat