Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",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.001579/0.001578, allocations: 188.2 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2883/0.2883, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004734/0.0004735, allocations: 12 kB / 431.5 MB, free: 20.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1207, allocations: 58.86 MB / 490.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.05379/0.1746, allocations: 33.37 MB / 0.5114 GB, free: 7.754 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.1965, allocations: 7.643 MB / 0.5189 GB, free: 88 kB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.3326/0.5291, allocations: 151.9 kB / 0.519 GB, free: 10.04 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006331/0.5355, allocations: 1.674 MB / 0.5207 GB, free: 10.04 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01924/0.5548, allocations: 4.814 MB / 0.5254 GB, free: 9.961 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.5572, allocations: 221.7 kB / 0.5256 GB, free: 9.957 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004136/0.5614, allocations: 1.375 MB / 0.5269 GB, free: 9.949 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006496/0.5679, allocations: 3.015 MB / 0.5299 GB, free: 9.586 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.5696, allocations: 0.6028 MB / 0.5305 GB, free: 9.586 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.5715, allocations: 0.7881 MB / 0.5312 GB, free: 9.582 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006379/0.5721, allocations: 99.78 kB / 0.5313 GB, free: 9.582 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.574, allocations: 0.514 MB / 0.5318 GB, free: 9.582 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001886/0.5759, allocations: 0.9975 MB / 0.5328 GB, free: 9.574 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009498/0.5769, allocations: 0.5637 MB / 0.5333 GB, free: 9.543 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006471/0.5834, allocations: 3.724 MB / 0.537 GB, free: 7.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.5835, allocations: 4.062 kB / 0.537 GB, free: 7.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5835, allocations: 4 kB / 0.537 GB, free: 7.516 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002106/0.5837, allocations: 0 / 0.537 GB, free: 7.516 MB / 362.7 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.008699/0.5924, allocations: 2.664 MB / 0.5396 GB, free: 5.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.5925, allocations: 8.75 kB / 0.5396 GB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00197/0.5945, allocations: 0.5288 MB / 0.5401 GB, free: 5.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.6061, allocations: 1.948 MB / 0.542 GB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00474/0.6109, allocations: 1.382 MB / 0.5434 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.6111, allocations: 164.7 kB / 0.5435 GB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.6122, allocations: 204.3 kB / 0.5437 GB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.6296, allocations: 6.988 MB / 0.5505 GB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-05/0.6298, allocations: 17.17 kB / 0.5506 GB, free: 2.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004797/0.6303, allocations: 102.2 kB / 0.5507 GB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003904/0.6342, allocations: 1.528 MB / 0.5521 GB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01804/0.6523, allocations: 5.971 MB / 0.558 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05101/0.7034, allocations: 22.28 MB / 0.5797 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007944/0.7114, allocations: 2.19 MB / 0.5819 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.7247, allocations: 3.99 MB / 0.5858 GB, free: 5.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.7248, allocations: 43.22 kB / 0.5858 GB, free: 5.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.619e-06/0.7248, allocations: 0 / 0.5858 GB, free: 5.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.01153/0.7364, allocations: 2.507 MB / 0.5883 GB, free: 3.363 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.7365, allocations: 60.06 kB / 0.5883 GB, free: 3.293 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005933/0.7425, allocations: 2.044 MB / 0.5903 GB, free: 1.203 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002452/0.7428, allocations: 37.7 kB / 0.5904 GB, free: 1.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002761/0.7455, allocations: 2.028 MB / 0.5923 GB, free: 15.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007956/0.7464, allocations: 375.8 kB / 0.5927 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004403/0.7469, allocations: 64 kB / 0.5928 GB, free: 14.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005007/0.7474, allocations: 459.6 kB / 0.5932 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003353/0.7508, allocations: 0.9785 MB / 0.5941 GB, free: 13.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005915/0.7568, allocations: 2.985 MB / 0.5971 GB, free: 9.332 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005002/0.7618, allocations: 1.7 MB / 0.5987 GB, free: 7.695 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.289e-05/0.762, allocations: 23.78 kB / 0.5987 GB, free: 7.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01174/0.7737, allocations: 3.811 MB / 0.6025 GB, free: 4.285 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-05/0.7739, allocations: 38.66 kB / 0.6025 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/0.774, allocations: 72 kB / 0.6026 GB, free: 4.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.7742, allocations: 104 kB / 0.6027 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004787/0.779, allocations: 0.728 MB / 0.6034 GB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001997/0.7793, allocations: 132.1 kB / 0.6035 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003712/0.783, allocations: 470.4 kB / 0.604 GB, free: 2.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000776/0.7838, allocations: 196 kB / 0.6041 GB, free: 2.621 MB / 410.7 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.004132/0.788, allocations: 1.469 MB / 0.6056 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004448/0.7884, allocations: 173.8 kB / 0.6057 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003534/0.792, allocations: 1.233 MB / 0.6069 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.456e-05/0.792, allocations: 16 kB / 0.607 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.7921, allocations: 0 / 0.607 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.7921, allocations: 3.984 kB / 0.607 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0149/0.807, allocations: 5.024 MB / 0.6119 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/0.8071, allocations: 16.2 kB / 0.6119 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.8083, allocations: 143.7 kB / 0.612 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.964e-05/0.8083, allocations: 19.95 kB / 0.612 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.8084, allocations: 28 kB / 0.6121 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.429e-05/0.8085, allocations: 19.92 kB / 0.6121 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.598e-05/0.8085, allocations: 15.94 kB / 0.6121 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.8125, allocations: 2.314 MB / 0.6144 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007778/0.8133, allocations: 282.4 kB / 0.6146 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003964/0.8137, allocations: 31.97 kB / 0.6147 GB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.8149, allocations: 39.97 kB / 0.6147 GB, free: 7.113 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.8151, allocations: 79.66 kB / 0.6148 GB, free: 7.035 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.8153, allocations: 41.95 kB / 0.6148 GB, free: 6.996 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00367/0.819, allocations: 1.337 MB / 0.6161 GB, free: 5.637 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.819, allocations: 3.938 kB / 0.6161 GB, free: 5.633 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004684/0.8237, allocations: 0.7632 MB / 0.6169 GB, free: 4.871 MB / 426.7 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.005946/0.8297, allocations: 5.579 MB / 0.6223 GB, free: 14.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00621/0.8359, allocations: 2.279 MB / 0.6245 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/0.836, allocations: 0 / 0.6245 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001465/0.8375, allocations: 0.5656 MB / 0.6251 GB, free: 12.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.8393, allocations: 241.2 kB / 0.6253 GB, free: 11.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04591/0.8853, allocations: 59.45 MB / 0.6834 GB, free: 14.62 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005518/0.8908, allocations: 2.525 MB / 0.6859 GB, free: 12.06 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003103/0.894, allocations: 1.194 MB / 0.687 GB, free: 10.87 MB / 0.4949 GB Notification: Performance of SimCode: time 2.875e-06/0.894, allocations: 0 / 0.687 GB, free: 10.87 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.671/4.565, allocations: 48.55 MB / 0.7344 GB, free: 183.3 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat