Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002188/0.002187, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 83.06 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2913/0.2913, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.053e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.4059, allocations: 58.85 MB / 477.2 MB, free: 5.141 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1943/0.6003, allocations: 104.3 MB / 0.5679 GB, free: 10.83 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.6007, allocations: 75.97 kB / 0.568 GB, free: 10.76 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9788/1.579, allocations: 162.5 MB / 0.7267 GB, free: 80.72 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.384e-06/1.58, allocations: 3.938 kB / 0.7267 GB, free: 80.71 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004701/1.58, allocations: 159.3 kB / 0.7269 GB, free: 80.56 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.0315/1.612, allocations: 7.978 MB / 0.7346 GB, free: 72.52 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.543e-05/1.612, allocations: 8.031 kB / 0.7347 GB, free: 72.51 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03161/1.643, allocations: 3.678 MB / 0.7382 GB, free: 68.81 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03282/1.676, allocations: 9.691 MB / 0.7477 GB, free: 59.13 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006195/1.677, allocations: 276 kB / 0.748 GB, free: 58.86 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004736/1.682, allocations: 496.8 kB / 0.7484 GB, free: 58.38 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0299/1.711, allocations: 11.6 MB / 0.7598 GB, free: 46.77 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04643/1.758, allocations: 16.99 MB / 0.7764 GB, free: 28.26 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005813/1.759, allocations: 83.22 kB / 0.7765 GB, free: 28.18 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004209/1.763, allocations: 48 kB / 0.7765 GB, free: 28.13 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004724/1.768, allocations: 1.88 MB / 0.7783 GB, free: 26.25 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6574/2.425, allocations: 82.2 MB / 0.8586 GB, free: 63.8 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007579/2.433, allocations: 3.064 MB / 0.8616 GB, free: 63.14 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00411/2.437, allocations: 1.506 MB / 0.8631 GB, free: 63.1 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002949/2.437, allocations: 42.47 kB / 0.8631 GB, free: 63.1 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/2.437, allocations: 64.33 kB / 0.8632 GB, free: 63.06 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=244): time 6.452e-06/2.437, allocations: 0 / 0.8632 GB, free: 63.06 MB / 0.4952 GB Notification: Performance of matching and sorting (n=256): time 0.04736/2.485, allocations: 11.8 MB / 0.8747 GB, free: 58.43 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.132e-05/2.485, allocations: 159 kB / 0.8748 GB, free: 58.27 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01374/2.498, allocations: 5.177 MB / 0.8799 GB, free: 57.78 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0005871/2.499, allocations: 31.94 kB / 0.8799 GB, free: 57.75 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.005227/2.504, allocations: 5.754 MB / 0.8855 GB, free: 54.45 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.001679/2.506, allocations: 0.9705 MB / 0.8865 GB, free: 53.89 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001146/2.507, allocations: 3.344 kB / 0.8865 GB, free: 53.89 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0006994/2.508, allocations: 0.7051 MB / 0.8872 GB, free: 53.56 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006358/2.514, allocations: 2.374 MB / 0.8895 GB, free: 53.54 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/2.525, allocations: 8.388 MB / 0.8977 GB, free: 45.68 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/2.535, allocations: 4.398 MB / 0.902 GB, free: 45.64 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002645/2.535, allocations: 59.59 kB / 0.902 GB, free: 45.64 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1237) (initialization): time 0.02597/2.561, allocations: 9.223 MB / 0.9111 GB, free: 43.93 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001814/2.561, allocations: 97.25 kB / 0.9111 GB, free: 43.93 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003464/2.562, allocations: 221.3 kB / 0.9114 GB, free: 43.93 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003869/2.562, allocations: 316.1 kB / 0.9117 GB, free: 43.93 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01472/2.577, allocations: 2.326 MB / 0.9139 GB, free: 43.65 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00044/2.577, allocations: 428.4 kB / 0.9143 GB, free: 43.56 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01251/2.59, allocations: 459.5 kB / 0.9148 GB, free: 43.54 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/2.592, allocations: 0.5814 MB / 0.9153 GB, free: 43.46 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 991 * Number of states: 0 () * Number of discrete variables: 60 (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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1213): * Single equations (assignments): 1210 * 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.003191/2.595, allocations: 0.631 MB / 0.916 GB, free: 42.95 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00747/2.603, allocations: 2.869 MB / 0.9188 GB, free: 41.84 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001754/2.605, allocations: 0.5423 MB / 0.9193 GB, free: 41.54 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00714/2.612, allocations: 2.581 MB / 0.9218 GB, free: 40.57 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.008e-05/2.612, allocations: 27.47 kB / 0.9218 GB, free: 40.57 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/2.612, allocations: 3.938 kB / 0.9218 GB, free: 40.57 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.383e-05/2.612, allocations: 16.97 kB / 0.9219 GB, free: 40.57 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04922/2.661, allocations: 21.2 MB / 0.9426 GB, free: 29.2 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.941e-05/2.661, allocations: 56 kB / 0.9426 GB, free: 29.14 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003921/2.665, allocations: 0.5634 MB / 0.9432 GB, free: 28.65 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/2.665, allocations: 83.8 kB / 0.9432 GB, free: 28.57 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004675/2.666, allocations: 90.38 kB / 0.9433 GB, free: 28.49 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-05/2.666, allocations: 110.3 kB / 0.9434 GB, free: 28.39 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.955e-05/2.666, allocations: 94.8 kB / 0.9435 GB, free: 28.3 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/2.677, allocations: 14.83 MB / 0.958 GB, free: 11.02 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002423/2.679, allocations: 0.6556 MB / 0.9586 GB, free: 10.36 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001977/2.681, allocations: 86.3 kB / 0.9587 GB, free: 10.29 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005745/2.687, allocations: 159.6 kB / 0.9589 GB, free: 10.17 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/2.688, allocations: 375.5 kB / 0.9592 GB, free: 9.871 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003528/2.689, allocations: 158.2 kB / 0.9594 GB, free: 9.723 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.009315/2.698, allocations: 3.491 MB / 0.9628 GB, free: 6.707 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.693e-06/2.698, allocations: 0 / 0.9628 GB, free: 6.707 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01331/2.711, allocations: 1.322 MB / 0.9641 GB, free: 5.391 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 256 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (300): * Single equations (assignments): 297 * 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.01957/2.731, allocations: 26.42 MB / 0.9899 GB, free: 9.438 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.01499/2.746, allocations: 5.564 MB / 0.9953 GB, free: 4.395 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 6.045e-05/2.746, allocations: 8 kB / 0.9953 GB, free: 4.387 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.003861/2.75, allocations: 1.406 MB / 0.9967 GB, free: 3.133 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007368/2.757, allocations: 0.7361 MB / 0.9974 GB, free: 2.516 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0658/2.823, allocations: 17.73 MB / 1.015 GB, free: 2.285 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01739/2.841, allocations: 5.934 MB / 1.021 GB, free: 13.96 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01017/2.851, allocations: 3.874 MB / 1.024 GB, free: 10.36 MB / 0.5577 GB Notification: Performance of SimCode: time 1.332e-06/2.851, allocations: 0 / 1.024 GB, free: 10.36 MB / 0.5577 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.471/8.322, allocations: 140 MB / 1.161 GB, free: 93.8 MB / 0.5577 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat