Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001053/0.001053, allocations: 95.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001452, allocations: 207.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2083/0.2083, allocations: 45.91 MB / 344 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004519/0.000452, allocations: 8 kB / 418 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1214, allocations: 63.47 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.3076/0.429, allocations: 85.25 MB / 0.5535 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04714/0.4762, allocations: 19.01 MB / 0.5721 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0202/0.4965, allocations: 442.9 kB / 0.5725 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01652/0.5131, allocations: 4.359 MB / 0.5767 GB, free: 5.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0383/0.5514, allocations: 12.26 MB / 0.5887 GB, free: 9.484 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006606/0.558, allocations: 1.244 MB / 0.5899 GB, free: 8.238 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009653/0.5677, allocations: 4.457 MB / 0.5943 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01387/0.5816, allocations: 8.957 MB / 0.603 GB, free: 10.74 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004096/0.5858, allocations: 1.963 MB / 0.6049 GB, free: 8.77 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004091/0.5899, allocations: 2.407 MB / 0.6073 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001243/0.5912, allocations: 260 kB / 0.6075 GB, free: 6.102 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002812/0.594, allocations: 0.9168 MB / 0.6084 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00443/0.5984, allocations: 2.915 MB / 0.6113 GB, free: 2.262 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002826/0.6013, allocations: 1.434 MB / 0.6127 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.615, allocations: 9.293 MB / 0.6218 GB, free: 7.496 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.615, allocations: 0 / 0.6218 GB, free: 7.496 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.615, allocations: 0 / 0.6218 GB, free: 7.496 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004631/0.6155, allocations: 0 / 0.6218 GB, free: 7.496 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.02307/0.6386, allocations: 7.503 MB / 0.6291 GB, free: 15.9 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.6387, allocations: 8.031 kB / 0.6291 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003744/0.6424, allocations: 1.215 MB / 0.6303 GB, free: 14.67 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/0.6547, allocations: 3 MB / 0.6332 GB, free: 11.66 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.6654, allocations: 4.901 MB / 0.638 GB, free: 6.68 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003525/0.6658, allocations: 438.9 kB / 0.6384 GB, free: 6.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/0.6673, allocations: 0.5544 MB / 0.639 GB, free: 5.695 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03329/0.7006, allocations: 17.59 MB / 0.6561 GB, free: 2.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001864/0.7008, allocations: 71.3 kB / 0.6562 GB, free: 2.902 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007472/0.7016, allocations: 275.7 kB / 0.6565 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004793/0.7064, allocations: 3.174 MB / 0.6596 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02924/0.7356, allocations: 13.56 MB / 0.6728 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5701/1.306, allocations: 66.21 MB / 0.7375 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01487/1.321, allocations: 5.408 MB / 0.7427 GB, free: 131.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01818/1.339, allocations: 10.14 MB / 0.7526 GB, free: 126.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/1.339, allocations: 54.34 kB / 0.7527 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=182): time 4.418e-06/1.339, allocations: 0 / 0.7527 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=206): time 0.03548/1.374, allocations: 14.56 MB / 0.7669 GB, free: 119 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/1.375, allocations: 148.6 kB / 0.7671 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007855/1.382, allocations: 6.821 MB / 0.7737 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003122/1.383, allocations: 65.02 kB / 0.7738 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002358/1.385, allocations: 5.237 MB / 0.7789 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006476/1.386, allocations: 0.8269 MB / 0.7797 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/1.386, allocations: 161.3 kB / 0.7799 GB, free: 110 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002878/1.386, allocations: 0.6591 MB / 0.7805 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/1.389, allocations: 2.282 MB / 0.7827 GB, free: 107.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004457/1.394, allocations: 7.664 MB / 0.7902 GB, free: 97.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00464/1.398, allocations: 4.032 MB / 0.7941 GB, free: 93.51 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.805e-05/1.398, allocations: 56 kB / 0.7942 GB, free: 93.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01622/1.415, allocations: 9.595 MB / 0.8036 GB, free: 83.86 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000102/1.415, allocations: 96.17 kB / 0.8037 GB, free: 83.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/1.415, allocations: 192 kB / 0.8038 GB, free: 83.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/1.415, allocations: 280 kB / 0.8041 GB, free: 83.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005555/1.421, allocations: 1.922 MB / 0.806 GB, free: 81.38 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002053/1.421, allocations: 378.5 kB / 0.8064 GB, free: 81 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006202/1.427, allocations: 417.2 kB / 0.8068 GB, free: 80.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001364/1.429, allocations: 0.5176 MB / 0.8073 GB, free: 80.08 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1039): * Single equations (assignments): 1028 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005809/1.434, allocations: 3.401 MB / 0.8106 GB, free: 76.67 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/1.436, allocations: 0.5321 MB / 0.8111 GB, free: 76.13 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/1.437, allocations: 0.6329 MB / 0.8117 GB, free: 75.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/1.437, allocations: 21.02 kB / 0.8117 GB, free: 75.47 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/1.437, allocations: 0 / 0.8117 GB, free: 75.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.01e-05/1.437, allocations: 11.97 kB / 0.8117 GB, free: 75.46 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02302/1.46, allocations: 15.29 MB / 0.8267 GB, free: 59.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001075/1.46, allocations: 44 kB / 0.8267 GB, free: 59.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/1.462, allocations: 451.1 kB / 0.8271 GB, free: 59.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.309e-05/1.462, allocations: 71.98 kB / 0.8272 GB, free: 58.95 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002255/1.462, allocations: 97.72 kB / 0.8273 GB, free: 58.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.414e-05/1.462, allocations: 90.84 kB / 0.8274 GB, free: 58.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-05/1.462, allocations: 72.22 kB / 0.8275 GB, free: 58.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005865/1.468, allocations: 12.34 MB / 0.8395 GB, free: 44.19 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/1.469, allocations: 0.6577 MB / 0.8402 GB, free: 43.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006154/1.47, allocations: 112 kB / 0.8403 GB, free: 43.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/1.472, allocations: 113.5 kB / 0.8404 GB, free: 43.29 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/1.472, allocations: 302.7 kB / 0.8407 GB, free: 42.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/1.472, allocations: 132 kB / 0.8408 GB, free: 42.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005566/1.478, allocations: 4.317 MB / 0.845 GB, free: 38.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.41e-07/1.478, allocations: 0 / 0.845 GB, free: 38.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007262/1.485, allocations: 1.383 MB / 0.8464 GB, free: 37.18 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * 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 (238): * Single equations (assignments): 235 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01089/1.496, allocations: 21.93 MB / 0.8678 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01187/1.508, allocations: 5.309 MB / 0.873 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-05/1.508, allocations: 10.12 kB / 0.873 GB, free: 8.484 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002273/1.51, allocations: 1.197 MB / 0.8741 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006655/1.517, allocations: 0.8519 MB / 0.875 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3197/1.837, allocations: 164.5 MB / 1.036 GB, free: 95.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0114/1.848, allocations: 5.411 MB / 1.041 GB, free: 94.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007993/1.856, allocations: 2.576 MB / 1.043 GB, free: 94.33 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005089/1.861, allocations: 3.433 MB / 1.047 GB, free: 92.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.433e-06/1.861, allocations: 0 / 1.047 GB, free: 92.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1504/2.012, allocations: 108.3 MB / 1.153 GB, free: 1.172 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001498/2.012, allocations: 175.8 kB / 1.153 GB, free: 0.9297 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.244/7.256, allocations: 0 / 1.153 GB, free: 0.9297 MB / 0.5763 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat