Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed",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.001527/0.001526, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.983/1.983, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001092/0.001091, allocations: 95.23 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.528/0.528, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005063/0.0005062, allocations: 12 kB / 431.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1349, allocations: 58.85 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.487/0.622, allocations: 87.5 MB / 0.5643 GB, free: 15.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.6223, allocations: 63.97 kB / 0.5643 GB, free: 15.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02224/0.6446, allocations: 4.803 MB / 0.569 GB, free: 10.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6447, allocations: 4 kB / 0.569 GB, free: 10.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.436e-05/0.6447, allocations: 4 kB / 0.569 GB, free: 10.24 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00148/0.6462, allocations: 0.5454 MB / 0.5696 GB, free: 9.648 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.855e-05/0.6463, allocations: 11.09 kB / 0.5696 GB, free: 9.641 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.6464, allocations: 58.53 kB / 0.5696 GB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.6466, allocations: 35.06 kB / 0.5697 GB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009023/0.6475, allocations: 262.2 kB / 0.5699 GB, free: 9.246 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-05/0.6476, allocations: 20.56 kB / 0.5699 GB, free: 9.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001904/0.6478, allocations: 35.89 kB / 0.57 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.649, allocations: 277.9 kB / 0.5702 GB, free: 8.898 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.6491, allocations: 4 kB / 0.5702 GB, free: 8.895 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.6492, allocations: 13.03 kB / 0.5702 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.6492, allocations: 4 kB / 0.5702 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007942/0.65, allocations: 199.8 kB / 0.5704 GB, free: 8.684 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.6525, allocations: 1.309 MB / 0.5717 GB, free: 7.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007461/0.6533, allocations: 255.7 kB / 0.572 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.402e-05/0.6534, allocations: 12 kB / 0.572 GB, free: 6.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.6534, allocations: 34.69 kB / 0.572 GB, free: 6.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.456e-06/0.6534, allocations: 0 / 0.572 GB, free: 6.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.00442/0.6579, allocations: 1.628 MB / 0.5736 GB, free: 5.098 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.658, allocations: 132.5 kB / 0.5737 GB, free: 4.938 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.6583, allocations: 200.2 kB / 0.5739 GB, free: 4.742 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.336e-05/0.6584, allocations: 33.64 kB / 0.5739 GB, free: 4.703 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.6586, allocations: 230.7 kB / 0.5742 GB, free: 4.477 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.6587, allocations: 118.3 kB / 0.5743 GB, free: 4.359 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.6588, allocations: 8 kB / 0.5743 GB, free: 4.352 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6589, allocations: 330.8 kB / 0.5746 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.6594, allocations: 116.7 kB / 0.5747 GB, free: 3.902 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006047/0.66, allocations: 253.4 kB / 0.5749 GB, free: 3.594 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.6606, allocations: 144.6 kB / 0.5751 GB, free: 3.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6607, allocations: 4 kB / 0.5751 GB, free: 3.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001378/0.662, allocations: 396.9 kB / 0.5755 GB, free: 3.055 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.6621, allocations: 8.406 kB / 0.5755 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.6621, allocations: 8 kB / 0.5755 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.6622, allocations: 8 kB / 0.5755 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007376/0.6629, allocations: 103.8 kB / 0.5756 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-05/0.6629, allocations: 11.98 kB / 0.5756 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/0.6634, allocations: 31.98 kB / 0.5756 GB, free: 2.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.6634, allocations: 20 kB / 0.5757 GB, free: 2.867 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 initialization (48): * Single equations (assignments): 48 * Array equations: 0 * 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.0002429/0.6637, allocations: 161.6 kB / 0.5758 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.6638, allocations: 23.72 kB / 0.5758 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.6639, allocations: 37.7 kB / 0.5759 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.6639, allocations: 4 kB / 0.5759 GB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.664, allocations: 0 / 0.5759 GB, free: 2.641 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.664, allocations: 3.984 kB / 0.5759 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.6664, allocations: 1.024 MB / 0.5769 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.6664, allocations: 0 / 0.5769 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000725/0.6671, allocations: 79.89 kB / 0.5769 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.6671, allocations: 4 kB / 0.577 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.6672, allocations: 19.94 kB / 0.577 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.386e-06/0.6672, allocations: 8.062 kB / 0.577 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.6672, allocations: 0 / 0.577 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.6691, allocations: 0.8184 MB / 0.5778 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.6692, allocations: 100.7 kB / 0.5779 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.6693, allocations: 16.17 kB / 0.5779 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004582/0.6698, allocations: 31.97 kB / 0.5779 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.6699, allocations: 23.92 kB / 0.5779 GB, free: 388 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.6699, allocations: 19.94 kB / 0.578 GB, free: 368 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.6701, allocations: 156.5 kB / 0.5781 GB, free: 212 kB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6702, allocations: 0 / 0.5781 GB, free: 212 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007057/0.6709, allocations: 68 kB / 0.5782 GB, free: 144 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * 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.002269/0.6732, allocations: 1.697 MB / 0.5798 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.6744, allocations: 308.8 kB / 0.5801 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6744, allocations: 0 / 0.5801 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005415/0.6749, allocations: 136.6 kB / 0.5803 GB, free: 13.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006526/0.6756, allocations: 48.97 kB / 0.5803 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006492/0.6821, allocations: 5.047 MB / 0.5852 GB, free: 8.695 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.6826, allocations: 0.7814 MB / 0.586 GB, free: 7.891 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.6829, allocations: 95.41 kB / 0.5861 GB, free: 7.797 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.683, allocations: 0 / 0.5861 GB, free: 7.797 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.414/3.097, allocations: 4.439 MB / 0.5904 GB, free: 3.371 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat