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.0006937/0.0006938, allocations: 94.62 kB / 17 MB, free: 6.105 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.0007154/0.0007154, allocations: 182.1 kB / 17.89 MB, free: 5.688 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.318/1.318, allocations: 223.3 MB / 241.9 MB, free: 336 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.1996/0.1996, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003034, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.153, allocations: 61.93 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001027/0.1541, allocations: 214.9 kB / 471.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.1572, allocations: 1.497 MB / 473.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.1572, allocations: 8 kB / 473.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.1573, allocations: 0 / 473.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.019e-05/0.1573, allocations: 3.938 kB / 473.4 MB, free: 11.91 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.001263/0.1586, allocations: 243.5 kB / 473.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.493e-05/0.1586, allocations: 4 kB / 473.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.608e-05/0.1587, allocations: 3.984 kB / 473.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.527e-05/0.1587, allocations: 8 kB / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.265e-05/0.1588, allocations: 0 / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.1588, allocations: 0 / 473.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00087/0.1597, allocations: 435 kB / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.1597, allocations: 0 / 474 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.453e-05/0.1597, allocations: 29.7 kB / 474.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.1602, allocations: 203.7 kB / 474.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.1602, allocations: 4 kB / 474.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1602, allocations: 4 kB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1602, allocations: 0 / 474.3 MB, free: 10.98 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.0004422/0.1607, allocations: 373 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.1607, allocations: 12.03 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.403e-05/0.1608, allocations: 30.56 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.931e-05/0.1608, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.1609, allocations: 159.1 kB / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.161, allocations: 0 / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.161, allocations: 3.953 kB / 474.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.843e-05/0.1611, allocations: 37.69 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1611, allocations: 0 / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1611, allocations: 3.984 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1611, allocations: 0 / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.1612, allocations: 8 kB / 474.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001732/0.1613, allocations: 141.7 kB / 475 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.013e-05/0.1614, allocations: 18.52 kB / 475 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.589e-05/0.1614, allocations: 8.953 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.1614, allocations: 7.984 kB / 475.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/0.1615, allocations: 64.16 kB / 475.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1615, allocations: 0 / 475.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002388/0.1618, allocations: 67.34 kB / 475.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.1618, allocations: 77.11 kB / 475.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.127e-05/0.1619, allocations: 89.86 kB / 475.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.1619, allocations: 33.69 kB / 475.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.779e-05/0.162, allocations: 84.27 kB / 475.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.162, allocations: 7.891 kB / 475.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.162, allocations: 0 / 475.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1621, allocations: 314.8 kB / 475.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-06/0.1622, allocations: 0 / 475.8 MB, free: 9.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.1622, allocations: 4 kB / 475.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.299e-05/0.1622, allocations: 25.7 kB / 475.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1622, allocations: 0 / 475.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.287e-05/0.1623, allocations: 59.47 kB / 475.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.1624, allocations: 41.66 kB / 475.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1624, allocations: 3.953 kB / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1624, allocations: 0 / 475.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.533e-06/0.1624, allocations: 3.938 kB / 475.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1624, allocations: 4 kB / 475.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.1624, allocations: 4 kB / 475.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.1625, allocations: 0 / 475.9 MB, free: 9.062 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.0001211/0.1626, allocations: 140.1 kB / 476.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-06/0.1626, allocations: 0 / 476.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.1626, allocations: 7.125 kB / 476.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.1626, allocations: 7.938 kB / 476.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1626, allocations: 0 / 476.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1627, allocations: 0 / 476.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.1628, allocations: 146 kB / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1628, allocations: 0 / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.1628, allocations: 0 / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1628, allocations: 0 / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.1628, allocations: 0 / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1628, allocations: 0 / 476.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.1628, allocations: 7.938 kB / 476.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.1629, allocations: 90.84 kB / 476.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.163, allocations: 81.05 kB / 476.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.163, allocations: 3.984 kB / 476.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.177e-05/0.163, allocations: 4 kB / 476.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.1631, allocations: 3.953 kB / 476.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.1631, allocations: 0 / 476.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.724e-05/0.1631, allocations: 79.31 kB / 476.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1631, allocations: 3.938 kB / 476.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003855/0.1635, allocations: 67.98 kB / 476.6 MB, free: 8.324 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.0007799/0.1643, allocations: 0.701 MB / 477.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.1644, allocations: 63.28 kB / 477.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.1644, allocations: 4.062 kB / 477.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.03e-05/0.1645, allocations: 59.41 kB / 477.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/0.1646, allocations: 8.594 kB / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003698/0.165, allocations: 128.3 kB / 477.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.1653, allocations: 0.6731 MB / 478.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.655e-06/0.1653, allocations: 0 / 478.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.1653, allocations: 11.44 kB / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1653, allocations: 0 / 478.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01359/0.1789, allocations: 1.862 MB / 480.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.1791, allocations: 212.9 kB / 480.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.071, allocations: 0 / 480.3 MB, free: 4.555 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