Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_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.001172/0.001172, allocations: 183.2 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.4 MB / 221.9 MB, free: 13.85 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.001429/0.001429, allocations: 86.88 kB / 270.2 MB, free: 13.38 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.2265/0.2265, allocations: 43.57 MB / 362.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 12 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1358, allocations: 58.85 MB / 490.3 MB, free: 8.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5581, allocations: 105.1 MB / 0.5815 GB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003666/0.5585, allocations: 81.25 kB / 0.5816 GB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6948/1.253, allocations: 166.2 MB / 0.7439 GB, free: 94.97 MB / 0.4949 GB Notification: Performance of FrontEnd: time 3.797e-06/1.253, allocations: 3.844 kB / 0.7439 GB, free: 94.97 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0005015/1.254, allocations: 161.5 kB / 0.744 GB, free: 94.97 MB / 0.4949 GB 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.02946/1.283, allocations: 8.547 MB / 0.7524 GB, free: 91.59 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.283, allocations: 7.25 kB / 0.7524 GB, free: 91.59 MB / 0.4949 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007444/1.291, allocations: 1.46 MB / 0.7538 GB, free: 91.47 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0197/1.311, allocations: 3.677 MB / 0.7574 GB, free: 90.91 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02563/1.336, allocations: 9.744 MB / 0.7669 GB, free: 89.87 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009624/1.337, allocations: 0.6293 MB / 0.7675 GB, free: 89.85 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005088/1.342, allocations: 0.8219 MB / 0.7683 GB, free: 89.85 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05348/1.396, allocations: 19.67 MB / 0.7875 GB, free: 84.88 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006463/1.397, allocations: 87.38 kB / 0.7876 GB, free: 84.87 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004557/1.401, allocations: 401.8 kB / 0.788 GB, free: 84.64 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/1.404, allocations: 1.872 MB / 0.7898 GB, free: 84.35 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03383/1.438, allocations: 15.53 MB / 0.805 GB, free: 79.65 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1111/1.549, allocations: 81.65 MB / 0.8847 GB, free: 3.055 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01654/1.566, allocations: 5.989 MB / 0.8906 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02479/1.591, allocations: 11.34 MB / 0.9017 GB, free: 1.203 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.066e-05/1.591, allocations: 60.5 kB / 0.9017 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=250): time 5.671e-06/1.591, allocations: 0 / 0.9017 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of matching and sorting (n=274): time 0.3608/1.952, allocations: 16.58 MB / 0.9179 GB, free: 98.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/1.952, allocations: 157.9 kB / 0.9181 GB, free: 98.27 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01562/1.968, allocations: 6.052 MB / 0.924 GB, free: 97.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00056/1.968, allocations: 67.55 kB / 0.924 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004169/1.972, allocations: 5.818 MB / 0.9297 GB, free: 95.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001749/1.974, allocations: 1.059 MB / 0.9308 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008042/1.975, allocations: 180.2 kB / 0.9309 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004602/1.975, allocations: 0.6938 MB / 0.9316 GB, free: 94.11 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004671/1.98, allocations: 2.681 MB / 0.9342 GB, free: 94.08 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007149/1.987, allocations: 8.472 MB / 0.9425 GB, free: 86.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007401/1.995, allocations: 4.611 MB / 0.947 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001839/1.995, allocations: 58.97 kB / 0.9471 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.02461/2.02, allocations: 10.87 MB / 0.9577 GB, free: 85.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002935/2.02, allocations: 93.06 kB / 0.9578 GB, free: 85.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003923/2.02, allocations: 207.6 kB / 0.958 GB, free: 85.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/2.021, allocations: 307.5 kB / 0.9583 GB, free: 85.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007748/2.028, allocations: 2.249 MB / 0.9605 GB, free: 85.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004061/2.029, allocations: 409.2 kB / 0.9608 GB, free: 85.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0105/2.039, allocations: 0.6193 MB / 0.9614 GB, free: 85.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002415/2.042, allocations: 0.5541 MB / 0.962 GB, free: 85.29 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1171): * Single equations (assignments): 1168 * 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.01116/2.053, allocations: 3.759 MB / 0.9657 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/2.056, allocations: 0.5891 MB / 0.9662 GB, free: 84.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007804/2.064, allocations: 3.002 MB / 0.9692 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-05/2.064, allocations: 29.17 kB / 0.9692 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.965e-05/2.064, allocations: 0 / 0.9692 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.382e-05/2.064, allocations: 21.5 kB / 0.9692 GB, free: 83.22 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04702/2.111, allocations: 24.82 MB / 0.9934 GB, free: 73.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002164/2.111, allocations: 61.88 kB / 0.9935 GB, free: 73.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/2.113, allocations: 0.5976 MB / 0.9941 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.579e-05/2.114, allocations: 93.98 kB / 0.9942 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/2.114, allocations: 134.9 kB / 0.9943 GB, free: 73.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.389e-05/2.114, allocations: 125.4 kB / 0.9944 GB, free: 73.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.818e-05/2.114, allocations: 93.56 kB / 0.9945 GB, free: 73.54 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/2.125, allocations: 16.96 MB / 1.011 GB, free: 56.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003039/2.128, allocations: 0.7225 MB / 1.012 GB, free: 55.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001815/2.13, allocations: 144.6 kB / 1.012 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004305/2.135, allocations: 210 kB / 1.012 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006612/2.135, allocations: 407.9 kB / 1.013 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000273/2.136, allocations: 176.2 kB / 1.013 GB, free: 55.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009434/2.145, allocations: 4.293 MB / 1.017 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/2.145, allocations: 0 / 1.017 GB, free: 54.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01356/2.159, allocations: 1.551 MB / 1.018 GB, free: 54.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * 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 (318): * Single equations (assignments): 315 * 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.01432/2.173, allocations: 28.96 MB / 1.047 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01172/2.185, allocations: 6.257 MB / 1.053 GB, free: 18.56 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.563e-05/2.185, allocations: 8 kB / 1.053 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002707/2.188, allocations: 1.604 MB / 1.054 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006267/2.194, allocations: 0.9182 MB / 1.055 GB, free: 16.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.452/2.646, allocations: 206.3 MB / 1.257 GB, free: 26.14 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01049/2.657, allocations: 5.969 MB / 1.263 GB, free: 25.25 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00832/2.665, allocations: 2.9 MB / 1.265 GB, free: 25.06 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005729/2.671, allocations: 3.864 MB / 1.269 GB, free: 25.05 MB / 0.5886 GB Notification: Performance of SimCode: time 1.723e-06/2.671, allocations: 0 / 1.269 GB, free: 25.05 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4742/3.145, allocations: 122.2 MB / 1.388 GB, free: 164.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/3.145, allocations: 169 kB / 1.389 GB, free: 164.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.867/10.01, allocations: 4 kB / 1.389 GB, free: 164.3 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat