Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",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.001045/0.001045, allocations: 96.59 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009214/0.0009214, allocations: 187.9 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.2 MB / 241.8 MB, free: 412 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2339/0.2339, allocations: 44.23 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005009/0.0005012, allocations: 8 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.13, allocations: 61.93 MB / 471.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.3685/0.4986, allocations: 85.22 MB / 0.5437 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05143/0.5501, allocations: 18.99 MB / 0.5623 GB, free: 5.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01987/0.57, allocations: 441.8 kB / 0.5627 GB, free: 5.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01653/0.5866, allocations: 4.363 MB / 0.5669 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04285/0.6295, allocations: 12.26 MB / 0.5789 GB, free: 5.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006953/0.6365, allocations: 1.24 MB / 0.5801 GB, free: 4.348 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00932/0.6458, allocations: 4.291 MB / 0.5843 GB, free: 56 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01405/0.6599, allocations: 8.974 MB / 0.5931 GB, free: 7.008 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004582/0.6646, allocations: 1.966 MB / 0.595 GB, free: 5.035 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00397/0.6686, allocations: 2.407 MB / 0.5973 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.6698, allocations: 256 kB / 0.5976 GB, free: 2.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00263/0.6725, allocations: 0.9441 MB / 0.5985 GB, free: 1.426 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003556/0.676, allocations: 2.911 MB / 0.6014 GB, free: 14.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.6785, allocations: 1.431 MB / 0.6028 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.691, allocations: 9.301 MB / 0.6118 GB, free: 3.742 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6911, allocations: 4 kB / 0.6118 GB, free: 3.738 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.6911, allocations: 0 / 0.6118 GB, free: 3.738 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005509/0.6916, allocations: 0 / 0.6118 GB, free: 3.738 MB / 446.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.01915/0.7108, allocations: 7.503 MB / 0.6192 GB, free: 12.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.7108, allocations: 8.031 kB / 0.6192 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003656/0.7145, allocations: 1.219 MB / 0.6204 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.7268, allocations: 3.008 MB / 0.6233 GB, free: 7.883 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.7387, allocations: 4.893 MB / 0.6281 GB, free: 2.914 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004263/0.7392, allocations: 438.9 kB / 0.6285 GB, free: 2.484 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.741, allocations: 0.5544 MB / 0.629 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03597/0.7769, allocations: 17.58 MB / 0.6462 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002638/0.7772, allocations: 71.31 kB / 0.6463 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/0.7784, allocations: 271.8 kB / 0.6465 GB, free: 14.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005106/0.7835, allocations: 3.17 MB / 0.6496 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03035/0.8139, allocations: 13.58 MB / 0.6629 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5475/1.361, allocations: 66.22 MB / 0.7276 GB, free: 143.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01587/1.377, allocations: 5.407 MB / 0.7328 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01766/1.395, allocations: 10.14 MB / 0.7427 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/1.395, allocations: 58.25 kB / 0.7428 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=182): time 5.58e-06/1.395, allocations: 0 / 0.7428 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=206): time 0.04117/1.436, allocations: 14.57 MB / 0.757 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.614e-05/1.436, allocations: 156.1 kB / 0.7572 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008995/1.445, allocations: 6.809 MB / 0.7638 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0002764/1.446, allocations: 61.02 kB / 0.7639 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002414/1.448, allocations: 5.244 MB / 0.769 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006695/1.449, allocations: 0.8198 MB / 0.7698 GB, free: 123.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/1.449, allocations: 163.6 kB / 0.7699 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002877/1.449, allocations: 0.6651 MB / 0.7706 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002789/1.452, allocations: 2.285 MB / 0.7728 GB, free: 121.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005125/1.457, allocations: 7.661 MB / 0.7803 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005078/1.462, allocations: 4.029 MB / 0.7842 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.529e-05/1.463, allocations: 56 kB / 0.7843 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.013/1.476, allocations: 9.6 MB / 0.7937 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.585e-05/1.476, allocations: 88 kB / 0.7938 GB, free: 98.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/1.476, allocations: 192 kB / 0.7939 GB, free: 98.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001769/1.476, allocations: 280 kB / 0.7942 GB, free: 97.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004866/1.481, allocations: 1.923 MB / 0.7961 GB, free: 95.85 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001912/1.481, allocations: 378.5 kB / 0.7964 GB, free: 95.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005587/1.487, allocations: 407.5 kB / 0.7968 GB, free: 95.08 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000736/1.487, allocations: 0.5193 MB / 0.7973 GB, free: 94.56 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.005469/1.493, allocations: 3.413 MB / 0.8007 GB, free: 91.14 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/1.494, allocations: 0.5321 MB / 0.8012 GB, free: 90.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/1.495, allocations: 0.629 MB / 0.8018 GB, free: 89.96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-05/1.495, allocations: 20 kB / 0.8018 GB, free: 89.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.289e-05/1.495, allocations: 11.48 kB / 0.8018 GB, free: 89.94 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/1.495, allocations: 11.97 kB / 0.8018 GB, free: 89.93 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.515, allocations: 15.28 MB / 0.8168 GB, free: 73.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.914e-05/1.515, allocations: 51.94 kB / 0.8168 GB, free: 73.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/1.516, allocations: 451.2 kB / 0.8173 GB, free: 73.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.043e-05/1.516, allocations: 68 kB / 0.8173 GB, free: 73.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/1.516, allocations: 99.56 kB / 0.8174 GB, free: 73.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.212e-05/1.517, allocations: 91.64 kB / 0.8175 GB, free: 73.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.132e-05/1.517, allocations: 76.31 kB / 0.8176 GB, free: 73.16 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005724/1.522, allocations: 12.31 MB / 0.8296 GB, free: 58.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.524, allocations: 0.6655 MB / 0.8302 GB, free: 57.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004969/1.524, allocations: 108.5 kB / 0.8303 GB, free: 57.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/1.526, allocations: 109.4 kB / 0.8305 GB, free: 57.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/1.526, allocations: 326.6 kB / 0.8308 GB, free: 57.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.526, allocations: 120 kB / 0.8309 GB, free: 57.34 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005234/1.531, allocations: 4.313 MB / 0.8351 GB, free: 53.04 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/1.531, allocations: 0 / 0.8351 GB, free: 53.04 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006895/1.538, allocations: 1.384 MB / 0.8364 GB, free: 51.66 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.007495/1.546, allocations: 21.95 MB / 0.8579 GB, free: 28.22 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00847/1.554, allocations: 5.305 MB / 0.8631 GB, free: 22.95 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.669e-05/1.554, allocations: 8.25 kB / 0.8631 GB, free: 22.95 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001553/1.556, allocations: 1.196 MB / 0.8642 GB, free: 21.76 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005201/1.561, allocations: 0.8473 MB / 0.8651 GB, free: 20.91 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3059/1.867, allocations: 164.5 MB / 1.026 GB, free: 85.87 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0129/1.88, allocations: 5.407 MB / 1.031 GB, free: 84.96 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.009634/1.89, allocations: 2.58 MB / 1.034 GB, free: 84.7 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006552/1.896, allocations: 3.431 MB / 1.037 GB, free: 82.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.573e-06/1.896, allocations: 0 / 1.037 GB, free: 82.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4227/2.319, allocations: 108.4 MB / 1.143 GB, free: 168.2 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/2.319, allocations: 179.4 kB / 1.143 GB, free: 168 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.967/7.287, allocations: 1.344 kB / 1.143 GB, free: 168 MB / 0.5607 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat