Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 97.53 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001838/0.001839, allocations: 170.4 kB / 16.56 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 222.7 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.387/0.387, allocations: 43.55 MB / 314.5 MB, free: 8.758 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005022/0.0005023, allocations: 12 kB / 384 MB, free: 7.941 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1437, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.2837/0.4275, allocations: 33.39 MB / 476.2 MB, free: 31.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.4446, allocations: 7.646 MB / 483.9 MB, free: 25.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008288/0.4529, allocations: 159.6 kB / 484 MB, free: 25.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005795/0.4588, allocations: 1.678 MB / 485.7 MB, free: 25.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01534/0.4742, allocations: 4.815 MB / 490.5 MB, free: 23.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.4762, allocations: 225.8 kB / 490.7 MB, free: 22.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002646/0.4788, allocations: 1.377 MB / 492.1 MB, free: 22.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003333/0.4822, allocations: 3.009 MB / 495.1 MB, free: 21.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000739/0.4829, allocations: 0.6035 MB / 495.7 MB, free: 20.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000879/0.4838, allocations: 0.7864 MB / 496.5 MB, free: 20.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002216/0.484, allocations: 97.62 kB / 496.6 MB, free: 20.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009347/0.485, allocations: 0.518 MB / 497.1 MB, free: 20.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008978/0.4859, allocations: 0.9926 MB / 498.1 MB, free: 20.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004381/0.4863, allocations: 0.5699 MB / 498.7 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004857/0.4912, allocations: 3.719 MB / 0.4906 GB, free: 19.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.4912, allocations: 4 kB / 0.4906 GB, free: 19.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4912, allocations: 0 / 0.4906 GB, free: 19.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001302/0.4914, allocations: 0 / 0.4906 GB, free: 19.09 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1095 * Number of variables: 1095 Notification: Performance of Generate backend data structure: time 0.006517/0.4979, allocations: 2.662 MB / 0.4932 GB, free: 17.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.4979, allocations: 10 kB / 0.4932 GB, free: 17.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009801/0.4989, allocations: 0.5226 MB / 0.4938 GB, free: 17.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007155/0.5061, allocations: 1.955 MB / 0.4957 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004445/0.5106, allocations: 1.383 MB / 0.497 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.5108, allocations: 157.5 kB / 0.4972 GB, free: 16.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006205/0.5114, allocations: 206.1 kB / 0.4974 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/0.5243, allocations: 6.993 MB / 0.5042 GB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.533e-05/0.5244, allocations: 16.92 kB / 0.5042 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002882/0.5247, allocations: 97.92 kB / 0.5043 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00243/0.5271, allocations: 1.525 MB / 0.5058 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.539, allocations: 5.977 MB / 0.5116 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03119/0.5703, allocations: 22.28 MB / 0.5334 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004658/0.575, allocations: 2.187 MB / 0.5355 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00777/0.5828, allocations: 3.995 MB / 0.5394 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.5829, allocations: 39.22 kB / 0.5395 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.827e-06/0.5829, allocations: 0 / 0.5395 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.006088/0.589, allocations: 2.516 MB / 0.5419 GB, free: 9.117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.5891, allocations: 60.06 kB / 0.542 GB, free: 9.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003209/0.5923, allocations: 2.045 MB / 0.544 GB, free: 6.953 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.5924, allocations: 37.7 kB / 0.544 GB, free: 6.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.5938, allocations: 2.003 MB / 0.546 GB, free: 4.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003629/0.5942, allocations: 383.1 kB / 0.5463 GB, free: 4.496 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.5943, allocations: 60 kB / 0.5464 GB, free: 4.438 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003477/0.5947, allocations: 0.498 MB / 0.5469 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.5963, allocations: 0.9863 MB / 0.5478 GB, free: 2.941 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/0.5991, allocations: 2.98 MB / 0.5507 GB, free: 14.97 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.6015, allocations: 1.706 MB / 0.5524 GB, free: 13.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-05/0.6016, allocations: 27.95 kB / 0.5524 GB, free: 13.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.00607/0.6076, allocations: 3.855 MB / 0.5562 GB, free: 9.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.6077, allocations: 32 kB / 0.5562 GB, free: 9.344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.532e-05/0.6078, allocations: 72.88 kB / 0.5563 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001035/0.6079, allocations: 104 kB / 0.5564 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.61, allocations: 0.7291 MB / 0.5571 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001968/0.6102, allocations: 143.4 kB / 0.5573 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.6124, allocations: 451.2 kB / 0.5577 GB, free: 7.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/0.6127, allocations: 200 kB / 0.5579 GB, free: 7.66 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 24 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 396 * Array equations: 5 * 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.003098/0.6158, allocations: 1.466 MB / 0.5593 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003104/0.6161, allocations: 177.6 kB / 0.5595 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.6183, allocations: 1.241 MB / 0.5607 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/0.6184, allocations: 12 kB / 0.5607 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.6184, allocations: 3.938 kB / 0.5607 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.6184, allocations: 7.984 kB / 0.5607 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009518/0.6279, allocations: 5.022 MB / 0.5656 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.316e-05/0.628, allocations: 12 kB / 0.5656 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005747/0.6286, allocations: 135.8 kB / 0.5658 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.242e-05/0.6286, allocations: 19.95 kB / 0.5658 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/0.6287, allocations: 24 kB / 0.5658 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.056e-05/0.6287, allocations: 19.92 kB / 0.5658 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/0.6287, allocations: 19.88 kB / 0.5658 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.6316, allocations: 2.327 MB / 0.5681 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007431/0.6324, allocations: 274.5 kB / 0.5684 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.6326, allocations: 27.98 kB / 0.5684 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006226/0.6332, allocations: 47.86 kB / 0.5684 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.6333, allocations: 79.72 kB / 0.5685 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.663e-05/0.6334, allocations: 39.98 kB / 0.5686 GB, free: 12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002346/0.6358, allocations: 1.329 MB / 0.5699 GB, free: 10.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6358, allocations: 0 / 0.5699 GB, free: 10.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00316/0.639, allocations: 0.766 MB / 0.5706 GB, free: 9.879 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.00476/0.6437, allocations: 5.575 MB / 0.576 GB, free: 3.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004269/0.648, allocations: 2.276 MB / 0.5783 GB, free: 1.727 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.648, allocations: 4 kB / 0.5783 GB, free: 1.723 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000817/0.6489, allocations: 0.5527 MB / 0.5788 GB, free: 1.172 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.6503, allocations: 240.8 kB / 0.579 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04291/0.6932, allocations: 59.12 MB / 0.6368 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002989/0.6963, allocations: 2.514 MB / 0.6392 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002719/0.699, allocations: 1.043 MB / 0.6402 GB, free: 380 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2361/0.9351, allocations: 1.163 MB / 0.6414 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of SimCode: time 8.91e-07/0.9352, allocations: 2.781 kB / 0.6414 GB, free: 136.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08275/1.018, allocations: 39.29 MB / 0.6798 GB, free: 126.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/1.018, allocations: 179.9 kB / 0.6799 GB, free: 125.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/4.029, allocations: 0 / 0.6799 GB, free: 125.8 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat