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.0009999/0.001, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.374/1.374, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 89.27 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002415/0.0002416, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2442, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.3644, allocations: 74.94 MB / 476.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.3647, allocations: 59.97 kB / 476.6 MB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002809/0.3675, allocations: 0.8377 MB / 477.4 MB, free: 4.586 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.3675, allocations: 4 kB / 477.4 MB, free: 4.582 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3676, allocations: 0.5 kB / 477.4 MB, free: 4.582 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.0004138/0.368, allocations: 361.8 kB / 477.8 MB, free: 4.176 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.3681, allocations: 8.844 kB / 477.8 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.8e-05/0.3681, allocations: 46.45 kB / 477.8 MB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3683, allocations: 10.14 kB / 477.8 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.3685, allocations: 167 kB / 478 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.3685, allocations: 0 / 478 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.3685, allocations: 4 kB / 478 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.3688, allocations: 85.62 kB / 478.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3688, allocations: 3.344 kB / 478.1 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.3688, allocations: 4 kB / 478.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3688, allocations: 3.953 kB / 478.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.369, allocations: 47.91 kB / 478.1 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003197/0.3693, allocations: 252.9 kB / 478.4 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.3695, allocations: 76.41 kB / 478.5 MB, free: 3.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.3695, allocations: 3.938 kB / 478.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.38e-05/0.3696, allocations: 63.52 kB / 478.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.3696, allocations: 0.7188 kB / 478.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007041/0.3703, allocations: 332.4 kB / 478.9 MB, free: 2.941 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001497/0.3704, allocations: 89.09 kB / 478.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3706, allocations: 100.9 kB / 479 MB, free: 2.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.3706, allocations: 33.69 kB / 479.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/0.3707, allocations: 84.14 kB / 479.2 MB, free: 2.605 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.394e-05/0.3707, allocations: 23.89 kB / 479.2 MB, free: 2.582 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.3708, allocations: 0 / 479.2 MB, free: 2.582 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.371, allocations: 322.8 kB / 479.5 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.3711, allocations: 35.97 kB / 479.5 MB, free: 2.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.181e-05/0.3712, allocations: 51.91 kB / 479.6 MB, free: 2.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.3713, allocations: 73.67 kB / 479.6 MB, free: 2.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3713, allocations: 0 / 479.6 MB, free: 2.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004071/0.3717, allocations: 203.2 kB / 479.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.3718, allocations: 37.69 kB / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3718, allocations: 0 / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3718, allocations: 0 / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.728e-05/0.3719, allocations: 448 / 479.9 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.3719, allocations: 3.953 kB / 479.9 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.285e-05/0.3719, allocations: 4 kB / 479.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.793e-05/0.372, allocations: 12 kB / 479.9 MB, free: 1.82 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 () * Number of clocked 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 0.0001567/0.3722, allocations: 155.5 kB / 480.1 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.3722, allocations: 4 kB / 480.1 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.61e-05/0.3723, allocations: 8.375 kB / 480.1 MB, free: 1.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3723, allocations: 4 kB / 480.1 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.3723, allocations: 3.984 kB / 480.1 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3723, allocations: 3.953 kB / 480.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009026/0.3732, allocations: 468.4 kB / 480.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3732, allocations: 4 kB / 480.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.117e-05/0.3733, allocations: 3.938 kB / 480.5 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3733, allocations: 3.938 kB / 480.5 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3733, allocations: 7.984 kB / 480.6 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3733, allocations: 3.953 kB / 480.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3733, allocations: 0 / 480.6 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005253/0.3739, allocations: 329 kB / 480.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-05/0.3739, allocations: 77.11 kB / 481 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.374, allocations: 8 kB / 481 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.705e-05/0.3741, allocations: 4 kB / 481 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.3741, allocations: 11.89 kB / 481 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.3742, allocations: 7.984 kB / 481 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.015e-05/0.3742, allocations: 87.28 kB / 481.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3742, allocations: 0 / 481.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004152/0.3747, allocations: 15.98 kB / 481.1 MB, free: 0.5156 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) * Number of clocked states: 0 () * 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.001301/0.376, allocations: 0.9161 MB / 482 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.3762, allocations: 135.4 kB / 482.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3763, allocations: 0 / 482.1 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3764, allocations: 115.4 kB / 482.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.3766, allocations: 11.95 kB / 482.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.3779, allocations: 0.5616 MB / 482.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.3783, allocations: 0.6887 MB / 483.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.962e-05/0.3783, allocations: 0 / 483.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.3784, allocations: 19.44 kB / 483.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of SimCode: time 4.779e-06/0.3784, allocations: 0 / 483.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01708/0.3955, allocations: 1.528 MB / 485.1 MB, free: 12.57 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002961/0.3958, allocations: 221 kB / 485.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/1.994, allocations: 4 kB / 485.3 MB, free: 12.33 MB / 362.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