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.001195/0.001195, allocations: 100.5 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00169/0.001689, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2049/0.2049, allocations: 45.92 MB / 344.1 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002605, allocations: 8 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 63.47 MB / 481.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.3112/0.4308, allocations: 90.24 MB / 0.5585 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04953/0.4804, allocations: 18.13 MB / 0.5762 GB, free: 7.285 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02526/0.5057, allocations: 442.9 kB / 0.5766 GB, free: 6.852 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01821/0.524, allocations: 4.864 MB / 0.5814 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.048/0.572, allocations: 14.14 MB / 0.5952 GB, free: 3.766 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006627/0.5786, allocations: 1.26 MB / 0.5964 GB, free: 2.504 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.5919, allocations: 9.17 MB / 0.6053 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01512/0.607, allocations: 9.022 MB / 0.6142 GB, free: 224 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006633/0.6137, allocations: 2.456 MB / 0.6166 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007708/0.6214, allocations: 3.521 MB / 0.62 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002176/0.6237, allocations: 260 kB / 0.6202 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004581/0.6283, allocations: 0.944 MB / 0.6212 GB, free: 9.02 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005643/0.634, allocations: 3.14 MB / 0.6242 GB, free: 5.871 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.6373, allocations: 1.438 MB / 0.6256 GB, free: 4.422 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.6499, allocations: 9.294 MB / 0.6347 GB, free: 11.11 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.6499, allocations: 7.938 kB / 0.6347 GB, free: 11.1 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.6499, allocations: 0 / 0.6347 GB, free: 11.1 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005012/0.6505, allocations: 0 / 0.6347 GB, free: 11.1 MB / 478.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.01689/0.6674, allocations: 7.315 MB / 0.6419 GB, free: 3.695 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.6674, allocations: 8.031 kB / 0.6419 GB, free: 3.688 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003835/0.6713, allocations: 1.219 MB / 0.6431 GB, free: 2.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01138/0.6827, allocations: 2.684 MB / 0.6457 GB, free: 15.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01312/0.6958, allocations: 5.279 MB / 0.6508 GB, free: 10.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005479/0.6964, allocations: 438.9 kB / 0.6513 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002566/0.699, allocations: 0.5582 MB / 0.6518 GB, free: 9.414 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03886/0.7379, allocations: 17.43 MB / 0.6688 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003281/0.7383, allocations: 79.33 kB / 0.6689 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/0.7402, allocations: 267.8 kB / 0.6692 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005161/0.7454, allocations: 3.174 MB / 0.6723 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03036/0.7758, allocations: 13.37 MB / 0.6853 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6025/1.378, allocations: 65.96 MB / 0.7497 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/1.392, allocations: 5.375 MB / 0.755 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00319/1.395, allocations: 2.115 MB / 0.757 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01483/1.41, allocations: 10 MB / 0.7668 GB, free: 125 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/1.41, allocations: 50.12 kB / 0.7669 GB, free: 125 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=182): time 4.98e-06/1.41, allocations: 0 / 0.7669 GB, free: 125 MB / 0.5294 GB Notification: Performance of matching and sorting (n=206): time 0.03188/1.442, allocations: 14.24 MB / 0.7808 GB, free: 112 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/1.442, allocations: 145.8 kB / 0.7809 GB, free: 111.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006822/1.449, allocations: 6.373 MB / 0.7871 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003423/1.45, allocations: 54.64 kB / 0.7872 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002663/1.452, allocations: 5.258 MB / 0.7923 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007947/1.453, allocations: 0.8189 MB / 0.7931 GB, free: 99.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/1.453, allocations: 169.8 kB / 0.7933 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003263/1.454, allocations: 0.6577 MB / 0.7939 GB, free: 98.47 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/1.457, allocations: 2.277 MB / 0.7962 GB, free: 96.19 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005142/1.462, allocations: 7.698 MB / 0.8037 GB, free: 85.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005443/1.467, allocations: 4.036 MB / 0.8076 GB, free: 81.85 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/1.467, allocations: 56 kB / 0.8077 GB, free: 81.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.01637/1.484, allocations: 9.588 MB / 0.817 GB, free: 72.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002812/1.484, allocations: 99.61 kB / 0.8171 GB, free: 72.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000357/1.485, allocations: 192 kB / 0.8173 GB, free: 71.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003272/1.485, allocations: 280 kB / 0.8176 GB, free: 71.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005851/1.491, allocations: 1.918 MB / 0.8194 GB, free: 69.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003119/1.491, allocations: 374.5 kB / 0.8198 GB, free: 69.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0058/1.497, allocations: 417.6 kB / 0.8202 GB, free: 68.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/1.498, allocations: 0.517 MB / 0.8207 GB, free: 68.44 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.00643/1.505, allocations: 3.404 MB / 0.824 GB, free: 65.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.506, allocations: 0.5321 MB / 0.8245 GB, free: 64.48 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/1.507, allocations: 0.6329 MB / 0.8252 GB, free: 63.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.132e-05/1.508, allocations: 21.48 kB / 0.8252 GB, free: 63.82 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/1.508, allocations: 4 kB / 0.8252 GB, free: 63.82 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.263e-05/1.508, allocations: 7.969 kB / 0.8252 GB, free: 63.81 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02417/1.532, allocations: 15.26 MB / 0.8401 GB, free: 47.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.78e-05/1.532, allocations: 47.98 kB / 0.8401 GB, free: 47.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/1.533, allocations: 443.2 kB / 0.8406 GB, free: 47.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.279e-05/1.533, allocations: 68 kB / 0.8406 GB, free: 47.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/1.533, allocations: 99.98 kB / 0.8407 GB, free: 47.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.855e-05/1.533, allocations: 88.28 kB / 0.8408 GB, free: 47.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.124e-05/1.534, allocations: 79.69 kB / 0.8409 GB, free: 47.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003807/1.537, allocations: 4.296 MB / 0.8451 GB, free: 42.07 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/1.539, allocations: 0.6344 MB / 0.8457 GB, free: 41.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/1.54, allocations: 108 kB / 0.8458 GB, free: 41.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002521/1.543, allocations: 119.9 kB / 0.8459 GB, free: 41.19 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/1.543, allocations: 306.7 kB / 0.8462 GB, free: 40.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/1.543, allocations: 129.2 kB / 0.8463 GB, free: 40.76 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006421/1.549, allocations: 3.969 MB / 0.8502 GB, free: 36.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.5e-07/1.549, allocations: 0 / 0.8502 GB, free: 36.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007471/1.557, allocations: 1.367 MB / 0.8516 GB, free: 35.45 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.004735/1.562, allocations: 5.021 MB / 0.8565 GB, free: 29.72 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007622/1.569, allocations: 5.309 MB / 0.8616 GB, free: 24.46 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.05e-05/1.569, allocations: 8.375 kB / 0.8616 GB, free: 24.45 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/1.571, allocations: 1.194 MB / 0.8628 GB, free: 23.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006211/1.577, allocations: 0.8825 MB / 0.8637 GB, free: 22.39 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1003/1.677, allocations: 55.9 MB / 0.9183 GB, free: 7.992 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01079/1.688, allocations: 5.25 MB / 0.9234 GB, free: 2.707 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008342/1.697, allocations: 2.566 MB / 0.9259 GB, free: 136 kB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2634/1.96, allocations: 3.425 MB / 0.9292 GB, free: 205.3 MB / 0.5763 GB Notification: Performance of SimCode: time 9.52e-07/1.96, allocations: 0 / 0.9292 GB, free: 205.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1653/2.125, allocations: 108.9 MB / 1.036 GB, free: 125.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002344/2.126, allocations: 192 kB / 1.036 GB, free: 125.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.287/7.413, allocations: 0 / 1.036 GB, free: 125.1 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