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.001475/0.001475, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 225.6 MB / 234.8 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009223/0.0009223, allocations: 94.72 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1967/0.1967, allocations: 45.15 MB / 383.7 MB, free: 300 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.912e-05/1.914e-05, allocations: 0 / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4013/0.5062, allocations: 106.2 MB / 0.6081 GB, free: 12.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.5065, allocations: 81.7 kB / 0.6082 GB, free: 12.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7223/1.229, allocations: 154.2 MB / 0.7587 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.823e-06/1.229, allocations: 0 / 0.7587 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004914/1.229, allocations: 152.2 kB / 0.7589 GB, free: 104.4 MB / 0.5261 GB 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.02986/1.259, allocations: 7.355 MB / 0.7661 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.259, allocations: 9.719 kB / 0.7661 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02132/1.281, allocations: 3.527 MB / 0.7695 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0235/1.304, allocations: 7.878 MB / 0.7772 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004843/1.305, allocations: 244.1 kB / 0.7775 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004133/1.309, allocations: 449.2 kB / 0.7779 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02085/1.33, allocations: 10.27 MB / 0.7879 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03625/1.366, allocations: 15.22 MB / 0.8028 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003841/1.366, allocations: 92.81 kB / 0.8029 GB, free: 96.51 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001829/1.368, allocations: 43.88 kB / 0.8029 GB, free: 96.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00229/1.371, allocations: 1.623 MB / 0.8045 GB, free: 96.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07913/1.45, allocations: 76.22 MB / 0.8789 GB, free: 45.34 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/1.453, allocations: 2.343 MB / 0.8812 GB, free: 44.08 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/1.454, allocations: 1.137 MB / 0.8823 GB, free: 43.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 7.026e-05/1.454, allocations: 31.08 kB / 0.8824 GB, free: 43.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/1.454, allocations: 56.38 kB / 0.8824 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=176): time 4.107e-06/1.454, allocations: 0 / 0.8824 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=188): time 0.02181/1.476, allocations: 10.04 MB / 0.8922 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/1.476, allocations: 148.6 kB / 0.8924 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006779/1.483, allocations: 4.83 MB / 0.8971 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004234/1.483, allocations: 29.7 kB / 0.8971 GB, free: 35.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003171/1.486, allocations: 5.364 MB / 0.9023 GB, free: 31.13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008228/1.487, allocations: 0.7385 MB / 0.9031 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/1.488, allocations: 0 / 0.9031 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003277/1.488, allocations: 0.6558 MB / 0.9037 GB, free: 29.91 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/1.49, allocations: 1.955 MB / 0.9056 GB, free: 28.17 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004619/1.495, allocations: 7.379 MB / 0.9128 GB, free: 18.46 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004368/1.499, allocations: 3.753 MB / 0.9165 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.821e-05/1.499, allocations: 56 kB / 0.9165 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.01348/1.513, allocations: 8.081 MB / 0.9244 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.513, allocations: 95.94 kB / 0.9245 GB, free: 7.992 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002594/1.513, allocations: 196.9 kB / 0.9247 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/1.514, allocations: 284 kB / 0.925 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006412/1.52, allocations: 2.021 MB / 0.927 GB, free: 5.758 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000204/1.52, allocations: 381.2 kB / 0.9273 GB, free: 5.426 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007134/1.527, allocations: 429.9 kB / 0.9277 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/1.529, allocations: 0.5074 MB / 0.9282 GB, free: 4.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1046 * 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.0009818/1.53, allocations: 0.5934 MB / 0.9288 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003081/1.533, allocations: 2.156 MB / 0.9309 GB, free: 2.051 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005662/1.533, allocations: 0.4936 MB / 0.9314 GB, free: 1.551 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/1.535, allocations: 0.5848 MB / 0.932 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.341e-05/1.535, allocations: 20 kB / 0.932 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/1.535, allocations: 0 / 0.932 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/1.535, allocations: 11.55 kB / 0.932 GB, free: 1.016 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.555, allocations: 12.2 MB / 0.9439 GB, free: 6.305 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.172e-05/1.556, allocations: 40 kB / 0.9439 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/1.557, allocations: 396.5 kB / 0.9443 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.633e-05/1.557, allocations: 64 kB / 0.9444 GB, free: 5.863 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/1.557, allocations: 52 kB / 0.9444 GB, free: 5.812 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.478e-05/1.557, allocations: 78.53 kB / 0.9445 GB, free: 5.746 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.761e-05/1.557, allocations: 63.75 kB / 0.9446 GB, free: 5.684 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009008/1.566, allocations: 10.11 MB / 0.9544 GB, free: 9.582 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/1.568, allocations: 0.5729 MB / 0.955 GB, free: 9.004 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006984/1.569, allocations: 59.31 kB / 0.955 GB, free: 8.953 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/1.571, allocations: 141.3 kB / 0.9552 GB, free: 8.852 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/1.571, allocations: 261.9 kB / 0.9554 GB, free: 8.641 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/1.571, allocations: 115.5 kB / 0.9555 GB, free: 8.531 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.006451/1.578, allocations: 3.246 MB / 0.9587 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.41e-07/1.578, allocations: 0 / 0.9587 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009511/1.587, allocations: 1.16 MB / 0.9598 GB, free: 4.559 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 209 * 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.3984/1.986, allocations: 18.74 MB / 0.9781 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009497/1.995, allocations: 4.579 MB / 0.9826 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.718e-05/1.995, allocations: 6.531 kB / 0.9826 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001885/1.997, allocations: 1.017 MB / 0.9836 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/2.002, allocations: 0.7143 MB / 0.9843 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/2.043, allocations: 14.45 MB / 0.9984 GB, free: 102.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/2.053, allocations: 5.372 MB / 1.004 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00773/2.061, allocations: 2.603 MB / 1.006 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005275/2.067, allocations: 3.392 MB / 1.01 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.222e-06/2.067, allocations: 9.047 kB / 1.01 GB, free: 101.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1574/2.224, allocations: 100.4 MB / 1.108 GB, free: 57.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/2.224, allocations: 126.1 kB / 1.108 GB, free: 57.34 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.162/7.386, allocations: 0 / 1.108 GB, free: 57.34 MB / 0.5573 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