Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.001083/0.001083, allocations: 94.09 kB / 16.98 MB, free: 5.938 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.001208/0.001208, allocations: 182.6 kB / 17.87 MB, free: 5.609 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.354/1.354, allocations: 223.2 MB / 241.8 MB, free: 372 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.2144/0.2144, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003487, allocations: 11.98 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1437, allocations: 61.91 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0007631/0.1445, allocations: 214.9 kB / 471.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.1474, allocations: 1.497 MB / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.1475, allocations: 0 / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.462e-05/0.1475, allocations: 0 / 473.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.1476, allocations: 0 / 473.2 MB, free: 11.94 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1486, allocations: 231.2 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.156e-05/0.1487, allocations: 7.984 kB / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.256e-05/0.1487, allocations: 0 / 473.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.614e-05/0.1488, allocations: 7.984 kB / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.171e-05/0.1488, allocations: 0 / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-06/0.1488, allocations: 0 / 473.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008152/0.1497, allocations: 419.2 kB / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.1497, allocations: 4 kB / 473.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.477e-05/0.1497, allocations: 25.7 kB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.1501, allocations: 219.7 kB / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1502, allocations: 0 / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1502, allocations: 0 / 474.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1502, allocations: 0 / 474.1 MB, free: 11.04 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004718/0.1507, allocations: 365.1 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.1507, allocations: 8.031 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.1508, allocations: 34.56 kB / 474.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.1508, allocations: 0 / 474.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.151, allocations: 163.1 kB / 474.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.151, allocations: 7.938 kB / 474.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.151, allocations: 3.953 kB / 474.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.1511, allocations: 37.64 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1511, allocations: 0 / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1512, allocations: 0 / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1512, allocations: 0 / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.06e-05/0.1512, allocations: 0 / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.1514, allocations: 149.7 kB / 474.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.508e-05/0.1515, allocations: 18.58 kB / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.1515, allocations: 0 / 474.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.895e-05/0.1516, allocations: 72.25 kB / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1516, allocations: 0 / 475 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002077/0.1518, allocations: 67.33 kB / 475 MB, free: 9.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.1519, allocations: 81.11 kB / 475.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.117e-05/0.1519, allocations: 89.86 kB / 475.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.152, allocations: 25.7 kB / 475.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.152, allocations: 84.27 kB / 475.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.152, allocations: 3.906 kB / 475.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.152, allocations: 0 / 475.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1522, allocations: 314.8 kB / 475.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.335e-06/0.1522, allocations: 4 kB / 475.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.1522, allocations: 0 / 475.6 MB, free: 9.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.324e-05/0.1523, allocations: 25.7 kB / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1523, allocations: 0 / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.593e-05/0.1524, allocations: 71.39 kB / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.171e-05/0.1524, allocations: 33.7 kB / 475.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1525, allocations: 0 / 475.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1525, allocations: 3.953 kB / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.1525, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.1525, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/0.1525, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-06/0.1525, allocations: 0 / 475.8 MB, free: 9.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001147/0.1527, allocations: 144.1 kB / 475.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.1527, allocations: 4.031 kB / 475.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.406e-05/0.1527, allocations: 7.109 kB / 475.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1527, allocations: 3.953 kB / 475.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1527, allocations: 7.938 kB / 475.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1528, allocations: 0 / 475.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.1529, allocations: 142 kB / 476.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1529, allocations: 4 kB / 476.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-06/0.1529, allocations: 3.984 kB / 476.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1529, allocations: 0 / 476.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1529, allocations: 4 kB / 476.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1529, allocations: 0 / 476.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.153, allocations: 7.953 kB / 476.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.1531, allocations: 86.78 kB / 476.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.1531, allocations: 85.09 kB / 476.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.1532, allocations: 0 / 476.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.291e-05/0.1532, allocations: 0 / 476.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.1532, allocations: 0 / 476.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1532, allocations: 3.953 kB / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.271e-05/0.1533, allocations: 83.31 kB / 476.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1533, allocations: 0 / 476.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.1538, allocations: 67.98 kB / 476.4 MB, free: 8.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008558/0.1546, allocations: 0.7095 MB / 477.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.1548, allocations: 59.41 kB / 477.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1548, allocations: 4.062 kB / 477.2 MB, free: 7.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.862e-05/0.1548, allocations: 59.39 kB / 477.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.155, allocations: 1.875 kB / 477.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004311/0.1554, allocations: 124.3 kB / 477.4 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.1558, allocations: 0.6731 MB / 478 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.854e-06/0.1558, allocations: 0 / 478 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.015e-05/0.1558, allocations: 11.42 kB / 478 MB, free: 6.637 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1558, allocations: 0 / 478 MB, free: 6.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.1723, allocations: 1.87 MB / 479.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002823/0.1726, allocations: 201.7 kB / 480.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/1.952, allocations: 4 kB / 480.1 MB, free: 4.629 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat does not exist to compare? outputFormat=mat