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.001004/0.001004, allocations: 95.75 kB / 16.98 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.0009783/0.0009782, allocations: 183.7 kB / 17.87 MB, free: 5.957 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.396/1.396, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2382/0.2382, allocations: 44.22 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003382, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1496, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002703/0.1524, allocations: 2.101 MB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009922/0.1534, allocations: 0.6355 MB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.1535, allocations: 8 kB / 474.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.595e-05/0.1536, allocations: 23.78 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1538, allocations: 107.6 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.154, allocations: 63.86 kB / 474.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.1543, allocations: 231.5 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.1545, allocations: 69.44 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.1547, allocations: 107.6 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.1548, allocations: 119.4 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.1549, allocations: 12 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.415e-05/0.1549, allocations: 12 kB / 475 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.21e-05/0.155, allocations: 39.83 kB / 475 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.284e-05/0.155, allocations: 81.52 kB / 475.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.1552, allocations: 207.7 kB / 475.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1552, allocations: 0 / 475.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1553, allocations: 0 / 475.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.1553, allocations: 0 / 475.3 MB, free: 9.824 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.0008177/0.1561, allocations: 0.5495 MB / 475.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1561, allocations: 8.031 kB / 475.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.676e-05/0.1562, allocations: 58.55 kB / 475.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.1563, allocations: 43.56 kB / 476 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.1566, allocations: 251.5 kB / 476.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1566, allocations: 20.56 kB / 476.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.1567, allocations: 35.94 kB / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.1572, allocations: 281.9 kB / 476.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.1572, allocations: 7.906 kB / 476.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.1572, allocations: 12 kB / 476.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1572, allocations: 4 kB / 476.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.1577, allocations: 203.7 kB / 476.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.1592, allocations: 1.321 MB / 478.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004076/0.1596, allocations: 254.5 kB / 478.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.1597, allocations: 7.938 kB / 478.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.1597, allocations: 42.55 kB / 478.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.1597, allocations: 0 / 478.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002491/0.1622, allocations: 1.632 MB / 480 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.1623, allocations: 132.5 kB / 480.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.1625, allocations: 213 kB / 480.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1625, allocations: 33.7 kB / 480.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1627, allocations: 176.2 kB / 480.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.621e-05/0.1628, allocations: 122.3 kB / 480.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.409e-05/0.1628, allocations: 4 kB / 480.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1629, allocations: 343 kB / 481 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.1632, allocations: 116.7 kB / 481.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.1635, allocations: 249.4 kB / 481.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.1638, allocations: 148.1 kB / 481.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1638, allocations: 0 / 481.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007024/0.1645, allocations: 417.1 kB / 481.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1645, allocations: 12.36 kB / 482 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1646, allocations: 8.094 kB / 482 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.1646, allocations: 11.98 kB / 482 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003696/0.165, allocations: 103.8 kB / 482.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.165, allocations: 7.938 kB / 482.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.1652, allocations: 39.97 kB / 482.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.1652, allocations: 20 kB / 482.1 MB, free: 2.398 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.0001389/0.1654, allocations: 146.2 kB / 482.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.1655, allocations: 31.62 kB / 482.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-05/0.1655, allocations: 37.66 kB / 482.4 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.1656, allocations: 4 kB / 482.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.1656, allocations: 4 kB / 482.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1656, allocations: 0 / 482.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.1671, allocations: 1.009 MB / 483.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.1672, allocations: 4.281 kB / 483.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003771/0.1675, allocations: 79.89 kB / 483.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1676, allocations: 0 / 483.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.1676, allocations: 15.92 kB / 483.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.1676, allocations: 4 kB / 483.5 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1676, allocations: 4.062 kB / 483.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.1686, allocations: 0.8314 MB / 484.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.086e-05/0.1687, allocations: 100.9 kB / 484.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.1688, allocations: 8.062 kB / 484.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.169, allocations: 24.11 kB / 484.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.1691, allocations: 31.89 kB / 484.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.1692, allocations: 12 kB / 484.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000134/0.1693, allocations: 160.5 kB / 484.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1693, allocations: 0 / 484.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.1698, allocations: 67.78 kB / 484.7 MB, free: 15.69 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.001732/0.1715, allocations: 1.7 MB / 486.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006978/0.1722, allocations: 304.3 kB / 486.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1723, allocations: 0 / 486.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.1725, allocations: 139.8 kB / 486.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.173, allocations: 36.61 kB / 486.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005008/0.178, allocations: 5.033 MB / 491.9 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005203/0.1786, allocations: 0.7763 MB / 492.7 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001528/0.1787, allocations: 34.95 kB / 492.7 MB, free: 7.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.1789, allocations: 95.39 kB / 492.8 MB, free: 7.336 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1789, allocations: 4 kB / 492.8 MB, free: 7.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.1956, allocations: 4.724 MB / 497.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002098/0.1959, allocations: 177.3 kB / 497.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.051, allocations: 7.938 kB / 497.7 MB, free: 2.477 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