Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.3 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009376/0.0009378, allocations: 91.81 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.938e-05, allocations: 4 kB / 343.9 MB, free: 4.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 50.42 MB / 394.3 MB, free: 1.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.5829, allocations: 74.88 MB / 469.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/0.5831, allocations: 59.97 kB / 469.3 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001817/0.5849, allocations: 0.8255 MB / 470.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5849, allocations: 0 / 470.1 MB, free: 11.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.5849, allocations: 0 / 470.1 MB, free: 11.76 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002897/0.5852, allocations: 364.9 kB / 470.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.5853, allocations: 12.03 kB / 470.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.408e-05/0.5854, allocations: 42.55 kB / 470.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.5854, allocations: 11.86 kB / 470.5 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.5855, allocations: 163 kB / 470.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.5856, allocations: 4 kB / 470.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.5856, allocations: 0 / 470.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.5858, allocations: 85.64 kB / 470.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.5858, allocations: 2.625 kB / 470.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5858, allocations: 4 kB / 470.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.5858, allocations: 7.953 kB / 470.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.903e-05/0.5859, allocations: 39.98 kB / 470.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00028/0.5862, allocations: 253.7 kB / 471.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.5863, allocations: 70.55 kB / 471.1 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-05/0.5864, allocations: 64.89 kB / 471.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.5864, allocations: 4 kB / 471.2 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.5865, allocations: 60.42 kB / 471.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.5865, allocations: 0 / 471.3 MB, free: 10.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003938/0.5869, allocations: 219.1 kB / 471.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.587, allocations: 81.11 kB / 471.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.332e-05/0.5871, allocations: 107.9 kB / 471.7 MB, free: 9.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.5871, allocations: 25.7 kB / 471.7 MB, free: 9.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.489e-05/0.5871, allocations: 84.14 kB / 471.8 MB, free: 9.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.5872, allocations: 27.66 kB / 471.8 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-06/0.5872, allocations: 4 kB / 471.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.5873, allocations: 314.8 kB / 472.1 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.269e-05/0.5874, allocations: 43.97 kB / 472.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-05/0.5874, allocations: 35.98 kB / 472.2 MB, free: 9.441 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.778e-05/0.5876, allocations: 85.58 kB / 472.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5876, allocations: 0 / 472.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002674/0.5878, allocations: 199.2 kB / 472.5 MB, free: 9.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.5879, allocations: 43.09 kB / 472.5 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.5879, allocations: 4 kB / 472.5 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5879, allocations: 3.984 kB / 472.5 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.913e-05/0.5879, allocations: 3.953 kB / 472.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.588, allocations: 4 kB / 472.5 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.955e-05/0.588, allocations: 0 / 472.5 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.588, allocations: 8 kB / 472.5 MB, free: 9.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 9.947e-05/0.5881, allocations: 138.7 kB / 472.7 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.5882, allocations: 7.906 kB / 472.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.486e-05/0.5882, allocations: 8.625 kB / 472.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5882, allocations: 4 kB / 472.7 MB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5882, allocations: 3.953 kB / 472.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5882, allocations: 0 / 472.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000488/0.5887, allocations: 472.1 kB / 473.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.5888, allocations: 4 kB / 473.2 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.5888, allocations: 0 / 473.2 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.5888, allocations: 0 / 473.2 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.5888, allocations: 4 kB / 473.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.5888, allocations: 3.953 kB / 473.2 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5888, allocations: 7.578 kB / 473.2 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.5892, allocations: 325 kB / 473.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.5892, allocations: 85 kB / 473.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.5892, allocations: 4 kB / 473.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.243e-05/0.5893, allocations: 0 / 473.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.5893, allocations: 7.953 kB / 473.6 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.5893, allocations: 11.94 kB / 473.6 MB, free: 7.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.608e-05/0.5894, allocations: 95.27 kB / 473.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5894, allocations: 0 / 473.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002144/0.5896, allocations: 16 kB / 473.7 MB, free: 7.785 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0008549/0.5905, allocations: 0.8943 MB / 474.6 MB, free: 6.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002106/0.5907, allocations: 139.4 kB / 474.7 MB, free: 6.723 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5907, allocations: 0 / 474.7 MB, free: 6.723 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.889e-05/0.5908, allocations: 99.39 kB / 474.8 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.591, allocations: 15.11 kB / 474.8 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.5914, allocations: 159.5 kB / 475 MB, free: 6.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.5917, allocations: 0.6887 MB / 475.7 MB, free: 5.695 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.442e-05/0.5917, allocations: 4 kB / 475.7 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.5917, allocations: 15.42 kB / 475.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of SimCode: time 6.72e-07/0.5917, allocations: 0 / 475.7 MB, free: 5.68 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.6064, allocations: 1.525 MB / 477.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.6066, allocations: 199.9 kB / 477.4 MB, free: 4.043 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.449/2.055, allocations: 4 kB / 477.4 MB, free: 4.039 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat