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/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.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/Complex trunk/package.mo): time 0.001514/0.001513, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009425/0.0009424, allocations: 107.2 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3839/0.3839, allocations: 45.22 MB / 394.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002802/0.0002802, allocations: 12 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3494, allocations: 63.24 MB / 0.5193 GB, free: 37.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1677/0.5172, allocations: 106.9 MB / 0.6237 GB, free: 12.51 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.5175, allocations: 83.94 kB / 0.6237 GB, free: 12.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6681/1.186, allocations: 157.4 MB / 0.7774 GB, free: 65.01 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.186, allocations: 0 / 0.7774 GB, free: 65.01 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005223/1.186, allocations: 147.9 kB / 0.7776 GB, free: 64.86 MB / 490.7 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.02701/1.213, allocations: 7.899 MB / 0.7853 GB, free: 56.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.536e-05/1.213, allocations: 11.97 kB / 0.7853 GB, free: 56.86 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008186/1.222, allocations: 1.298 MB / 0.7866 GB, free: 55.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01749/1.239, allocations: 3.523 MB / 0.79 GB, free: 52.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01987/1.259, allocations: 7.924 MB / 0.7978 GB, free: 44.01 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007062/1.26, allocations: 0.5616 MB / 0.7983 GB, free: 43.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004149/1.264, allocations: 0.7458 MB / 0.799 GB, free: 42.7 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04134/1.305, allocations: 17.76 MB / 0.8164 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004987/1.306, allocations: 87.12 kB / 0.8165 GB, free: 23.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003811/1.31, allocations: 359.8 kB / 0.8168 GB, free: 23.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002753/1.312, allocations: 1.629 MB / 0.8184 GB, free: 21.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03213/1.345, allocations: 13.84 MB / 0.8319 GB, free: 7.551 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4637/1.808, allocations: 74.58 MB / 0.9047 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01538/1.824, allocations: 5.278 MB / 0.9099 GB, free: 61.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01755/1.841, allocations: 9.97 MB / 0.9196 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/1.842, allocations: 56 kB / 0.9197 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=182): time 5.27e-06/1.842, allocations: 3.703 kB / 0.9197 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.04265/1.884, allocations: 14.31 MB / 0.9337 GB, free: 53.83 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/1.884, allocations: 147.6 kB / 0.9338 GB, free: 53.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01215/1.896, allocations: 5.689 MB / 0.9394 GB, free: 53.19 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003969/1.897, allocations: 60.72 kB / 0.9394 GB, free: 53.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003714/1.901, allocations: 5.291 MB / 0.9446 GB, free: 50.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001114/1.902, allocations: 0.8246 MB / 0.9454 GB, free: 49.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005834/1.902, allocations: 164.3 kB / 0.9455 GB, free: 49.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005027/1.903, allocations: 0.643 MB / 0.9462 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004432/1.907, allocations: 2.265 MB / 0.9484 GB, free: 49.49 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006688/1.914, allocations: 7.589 MB / 0.9558 GB, free: 42.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006718/1.921, allocations: 3.994 MB / 0.9597 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002582/1.921, allocations: 54.88 kB / 0.9597 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.02257/1.944, allocations: 9.513 MB / 0.969 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004553/1.944, allocations: 90.2 kB / 0.9691 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004306/1.945, allocations: 194.9 kB / 0.9693 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003274/1.945, allocations: 279.7 kB / 0.9696 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006781/1.952, allocations: 1.984 MB / 0.9715 GB, free: 41.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003648/1.952, allocations: 373 kB / 0.9719 GB, free: 41.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00801/1.96, allocations: 0.5666 MB / 0.9724 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.962, allocations: 0.4958 MB / 0.9729 GB, free: 40.82 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 68 (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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,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 (1031): * Single equations (assignments): 1028 * 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 prepare postOptimizeDAE: time 0.006963/1.969, allocations: 3.4 MB / 0.9762 GB, free: 39.31 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001413/1.97, allocations: 0.5342 MB / 0.9768 GB, free: 39.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/1.972, allocations: 0.6596 MB / 0.9774 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.913e-05/1.972, allocations: 24.11 kB / 0.9774 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.884e-05/1.972, allocations: 3.219 kB / 0.9774 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/1.972, allocations: 11.02 kB / 0.9774 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/1.999, allocations: 15.11 MB / 0.9922 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.475e-05/1.999, allocations: 46.44 kB / 0.9922 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/2.001, allocations: 430.7 kB / 0.9926 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.345e-05/2.001, allocations: 65.94 kB / 0.9927 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/2.001, allocations: 96.88 kB / 0.9928 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.865e-05/2.001, allocations: 90.81 kB / 0.9929 GB, free: 32.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.639e-05/2.001, allocations: 65.12 kB / 0.9929 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006436/2.007, allocations: 11.92 MB / 1.005 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002135/2.009, allocations: 0.6423 MB / 1.005 GB, free: 19.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008626/2.01, allocations: 105 kB / 1.005 GB, free: 19.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/2.013, allocations: 172.8 kB / 1.005 GB, free: 19.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003487/2.013, allocations: 288.9 kB / 1.006 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/2.014, allocations: 130 kB / 1.006 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008562/2.022, allocations: 4.033 MB / 1.01 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.21e-07/2.022, allocations: 0 / 1.01 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01005/2.032, allocations: 1.361 MB / 1.011 GB, free: 15.73 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 203 * 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 (230): * Single equations (assignments): 227 * 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.01066/2.043, allocations: 21.17 MB / 1.032 GB, free: 9.445 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01066/2.054, allocations: 5.225 MB / 1.037 GB, free: 4.898 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.603e-05/2.054, allocations: 8 kB / 1.037 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002268/2.056, allocations: 1.169 MB / 1.038 GB, free: 3.867 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005632/2.062, allocations: 0.8355 MB / 1.039 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4679/2.529, allocations: 187.2 MB / 1.222 GB, free: 105.8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01055/2.54, allocations: 5.401 MB / 1.227 GB, free: 105 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.008941/2.549, allocations: 2.582 MB / 1.229 GB, free: 104.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005424/2.555, allocations: 3.431 MB / 1.233 GB, free: 104.9 MB / 0.6198 GB Notification: Performance of SimCode: time 1.794e-06/2.555, allocations: 0 / 1.233 GB, free: 104.9 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1746/2.729, allocations: 109.2 MB / 1.339 GB, free: 37.62 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001635/2.729, allocations: 180.6 kB / 1.34 GB, free: 37.37 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.611/9.34, allocations: 4.062 kB / 1.34 GB, free: 37.37 MB / 0.6198 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