Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.0009465/0.0009464, allocations: 99.03 kB / 17 MB, free: 6.402 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.0008478/0.0008482, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.391/1.391, allocations: 223.2 MB / 241.9 MB, free: 344 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.2111/0.2111, allocations: 44.24 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.0003219, allocations: 8.219 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1361, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002756/0.1389, allocations: 2.186 MB / 473.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009592/0.1398, allocations: 0.6275 MB / 474.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.14, allocations: 7.938 kB / 474.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.1401, allocations: 31.77 kB / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.1403, allocations: 67.41 kB / 474.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.1405, allocations: 71.84 kB / 474.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000316/0.1408, allocations: 298.6 kB / 474.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.141, allocations: 75.67 kB / 475 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.1412, allocations: 111.5 kB / 475.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.1414, allocations: 111.5 kB / 475.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.1414, allocations: 12 kB / 475.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.647e-05/0.1415, allocations: 12 kB / 475.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.866e-05/0.1415, allocations: 43.78 kB / 475.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.434e-05/0.1416, allocations: 77.58 kB / 475.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.1418, allocations: 219.6 kB / 475.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1418, allocations: 0 / 475.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1418, allocations: 0 / 475.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1419, allocations: 0 / 475.6 MB, free: 9.707 MB / 350.1 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.0008515/0.1427, allocations: 0.5455 MB / 476.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1428, allocations: 16.02 kB / 476.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.97e-05/0.1428, allocations: 58.55 kB / 476.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.593e-05/0.1429, allocations: 31.62 kB / 476.2 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.1432, allocations: 251.6 kB / 476.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.1432, allocations: 20.56 kB / 476.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.1433, allocations: 31.95 kB / 476.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.1438, allocations: 285.9 kB / 476.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.1438, allocations: 7.906 kB / 476.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.1439, allocations: 12 kB / 476.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1439, allocations: 8 kB / 476.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.1443, allocations: 207.7 kB / 477 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.146, allocations: 1.321 MB / 478.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004497/0.1465, allocations: 250.5 kB / 478.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.1467, allocations: 111.3 kB / 478.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.1467, allocations: 4 kB / 478.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.1468, allocations: 46.48 kB / 478.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.1468, allocations: 0 / 478.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002773/0.1496, allocations: 1.621 MB / 480.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.1497, allocations: 136.5 kB / 480.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.1499, allocations: 217.1 kB / 480.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.1499, allocations: 33.64 kB / 480.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1501, allocations: 180.2 kB / 480.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.1502, allocations: 118.3 kB / 481 MB, free: 3.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.751e-05/0.1502, allocations: 12 kB / 481.1 MB, free: 3.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.1504, allocations: 334.8 kB / 481.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.1507, allocations: 116.7 kB / 481.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.1511, allocations: 249.4 kB / 481.7 MB, free: 2.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003012/0.1514, allocations: 152.3 kB / 481.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1514, allocations: 0 / 481.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007439/0.1521, allocations: 425 kB / 482.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1522, allocations: 4 kB / 482.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.1522, allocations: 8 kB / 482.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-05/0.1522, allocations: 4 kB / 482.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.1526, allocations: 103.8 kB / 482.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.1526, allocations: 8 kB / 482.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002002/0.1528, allocations: 36.05 kB / 482.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.1529, allocations: 19.98 kB / 482.5 MB, free: 2.176 MB / 350.1 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.0001866/0.1531, allocations: 154.2 kB / 482.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1532, allocations: 35.58 kB / 482.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.311e-05/0.1533, allocations: 33.7 kB / 482.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1533, allocations: 4 kB / 482.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.1533, allocations: 0 / 482.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1533, allocations: 8 kB / 482.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/0.1548, allocations: 1.009 MB / 483.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.1548, allocations: 4 kB / 483.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.1552, allocations: 79.89 kB / 483.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1552, allocations: 0 / 483.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.1552, allocations: 12.06 kB / 483.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.1552, allocations: 7.984 kB / 483.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1552, allocations: 0 / 483.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009812/0.1562, allocations: 0.7685 MB / 484.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.383e-05/0.1563, allocations: 100.8 kB / 484.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.1563, allocations: 12.19 kB / 484.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.1566, allocations: 27.98 kB / 484.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.938e-05/0.1567, allocations: 31.91 kB / 484.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.1567, allocations: 12 kB / 484.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.1569, allocations: 156.5 kB / 484.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1569, allocations: 0 / 484.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.1573, allocations: 64 kB / 485 MB, free: 15.55 MB / 366.1 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.001372/0.1587, allocations: 1.301 MB / 486.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006195/0.1593, allocations: 304.6 kB / 486.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1593, allocations: 0 / 486.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003169/0.1597, allocations: 148.7 kB / 486.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.1603, allocations: 40.83 kB / 486.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.1637, allocations: 2.186 MB / 489 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.1642, allocations: 0.7683 MB / 489.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.1644, allocations: 38.94 kB / 489.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.1645, allocations: 91.41 kB / 489.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1645, allocations: 0 / 489.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01598/0.1805, allocations: 4.764 MB / 494.6 MB, free: 5.848 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.1807, allocations: 175.2 kB / 494.8 MB, free: 5.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.116, allocations: 0 / 494.8 MB, free: 5.605 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat