Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.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.TestMatricesExamplesSolveLinearEquations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations",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.001168/0.001168, allocations: 102.2 kB / 16.99 MB, free: 5.941 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.001671/0.001671, allocations: 183.1 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.366/1.366, 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.2152/0.2152, allocations: 44.23 MB / 337.1 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003044, allocations: 13.69 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1425, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations): time 0.0008398/0.1434, allocations: 206.9 kB / 471.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003863/0.1473, allocations: 1.891 MB / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.821e-06/0.1473, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.328e-06/0.1474, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.689e-06/0.1474, allocations: 0 / 473.6 MB, free: 11.52 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/package.mo:697:5-750:29:writable] Warning: Pure function ‘Modelica.Math.Matrices.Examples.solveLinearEquations‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001843/0.1492, allocations: 428 kB / 474.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 1.539e-05/0.1492, allocations: 0 / 474.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.1493, allocations: 7.969 kB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.016e-05/0.1493, allocations: 4 kB / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.876e-05/0.1493, allocations: 0 / 474.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.775e-06/0.1494, allocations: 4 kB / 474.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.1508, allocations: 0.7057 MB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.1508, allocations: 0 / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.1508, allocations: 25.7 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008816/0.1517, allocations: 0.5147 MB / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1518, allocations: 0 / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1518, allocations: 0 / 475.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1518, allocations: 8 kB / 475.3 MB, free: 9.832 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004732/0.1523, allocations: 375.3 kB / 475.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.378e-05/0.1523, allocations: 11.97 kB / 475.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.1525, allocations: 109.8 kB / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.214e-05/0.1525, allocations: 75.28 kB / 475.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.1527, allocations: 238.3 kB / 476.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.201e-05/0.1528, allocations: 154.6 kB / 476.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.606e-05/0.1529, allocations: 162.5 kB / 476.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.278e-05/0.153, allocations: 105 kB / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.576e-05/0.153, allocations: 75.28 kB / 476.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-05/0.1531, allocations: 150.6 kB / 476.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.298e-05/0.1532, allocations: 150.6 kB / 476.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.407e-05/0.1533, allocations: 158.5 kB / 477 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.1536, allocations: 442 kB / 477.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.1538, allocations: 169.1 kB / 477.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.1538, allocations: 79.27 kB / 477.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.154, allocations: 113.8 kB / 477.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.154, allocations: 0 / 477.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.939e-05/0.1541, allocations: 29.64 kB / 477.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.255e-05/0.1542, allocations: 152.4 kB / 478 MB, free: 6.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.461e-05/0.1542, allocations: 93.86 kB / 478.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.1543, allocations: 25.7 kB / 478.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.721e-05/0.1543, allocations: 84.14 kB / 478.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-06/0.1543, allocations: 0 / 478.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-07/0.1543, allocations: 4 kB / 478.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002482/0.1546, allocations: 310.8 kB / 478.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.318e-06/0.1546, allocations: 0 / 478.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.397e-05/0.1546, allocations: 0 / 478.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.272e-05/0.1547, allocations: 79.33 kB / 478.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-05/0.1547, allocations: 75.28 kB / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.99e-05/0.1548, allocations: 37.62 kB / 478.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.1548, allocations: 79.28 kB / 478.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-05/0.1549, allocations: 87.27 kB / 478.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001708/0.1551, allocations: 154.5 kB / 479 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.42e-05/0.1551, allocations: 75.28 kB / 479.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.359e-05/0.1552, allocations: 154.6 kB / 479.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1553, allocations: 83.22 kB / 479.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.1553, allocations: 75.28 kB / 479.4 MB, free: 5.504 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001545/0.1555, allocations: 268.9 kB / 479.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.625e-05/0.1556, allocations: 108.9 kB / 479.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.992e-05/0.1557, allocations: 104.1 kB / 479.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001936/0.1559, allocations: 184.2 kB / 480 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.961e-05/0.156, allocations: 180.2 kB / 480.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.268e-05/0.156, allocations: 192.2 kB / 480.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.1563, allocations: 397.2 kB / 480.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.721e-05/0.1563, allocations: 101.2 kB / 480.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.1564, allocations: 101 kB / 481 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.08e-05/0.1565, allocations: 192.2 kB / 481.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.172e-05/0.1565, allocations: 184.3 kB / 481.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.467e-05/0.1566, allocations: 184.2 kB / 481.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.376e-05/0.1567, allocations: 180.2 kB / 481.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.1569, allocations: 307.8 kB / 482 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.157, allocations: 182.1 kB / 482.2 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.491e-05/0.1571, allocations: 184.2 kB / 482.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.698e-05/0.1572, allocations: 101 kB / 482.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.184e-05/0.1572, allocations: 188.1 kB / 482.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.1573, allocations: 113 kB / 482.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.874e-05/0.1573, allocations: 75.28 kB / 482.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1573, allocations: 0 / 482.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.158, allocations: 140.3 kB / 483 MB, free: 1.691 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0009469/0.1589, allocations: 0.9711 MB / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.735e-05/0.159, allocations: 0 / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.159, allocations: 0 / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.382e-06/0.159, allocations: 0 / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.1593, allocations: 0.5302 MB / 484.5 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000427/0.1598, allocations: 219.6 kB / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.1601, allocations: 0.6692 MB / 485.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.218e-06/0.1601, allocations: 0 / 485.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.559e-05/0.1601, allocations: 11.44 kB / 485.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.144e-06/0.1601, allocations: 0 / 485.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01536/0.1755, allocations: 3.771 MB / 489.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/0.1757, allocations: 230 kB / 489.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.035, allocations: 4 kB / 489.4 MB, free: 11.34 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatricesExamplesSolveLinearEquations.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestMatricesExamplesSolveLinearEquations_res.mat does not exist to compare? outputFormat=mat