Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007886/0.0007887, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.832e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09875, allocations: 47.58 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3239/0.4227, allocations: 73.98 MB / 444.1 MB, free: 3.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.4229, allocations: 62.59 kB / 444.2 MB, free: 3.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001873/0.4248, allocations: 0.8242 MB / 445 MB, free: 2.457 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4248, allocations: 0 / 445 MB, free: 2.457 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.4249, allocations: 0 / 445 MB, free: 2.457 MB / 314.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.0003753/0.4252, allocations: 364.8 kB / 445.3 MB, free: 2.055 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.4253, allocations: 8.031 kB / 445.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.284e-05/0.4254, allocations: 38.55 kB / 445.4 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.4254, allocations: 7.906 kB / 445.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.4256, allocations: 163.1 kB / 445.5 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.4256, allocations: 7.875 kB / 445.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.4257, allocations: 3.953 kB / 445.6 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.4259, allocations: 91.89 kB / 445.6 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4259, allocations: 0 / 445.6 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.426, allocations: 4 kB / 445.6 MB, free: 1.691 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.426, allocations: 4 kB / 445.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.999e-05/0.4261, allocations: 43.78 kB / 445.7 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004156/0.4265, allocations: 248.7 kB / 445.9 MB, free: 1.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.4267, allocations: 82.73 kB / 446 MB, free: 1.281 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.4268, allocations: 60.2 kB / 446.1 MB, free: 1.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.4268, allocations: 4 kB / 446.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.928e-05/0.4269, allocations: 60.27 kB / 446.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 3.306e-06/0.4269, allocations: 0 / 446.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004778/0.4274, allocations: 211.5 kB / 446.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.556e-05/0.4275, allocations: 88.92 kB / 446.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.4276, allocations: 104.7 kB / 446.5 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.4277, allocations: 29.64 kB / 446.6 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.4278, allocations: 84.3 kB / 446.6 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.4278, allocations: 22.77 kB / 446.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-06/0.4278, allocations: 4 kB / 446.7 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.428, allocations: 320.8 kB / 447 MB, free: 276 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.945e-05/0.4281, allocations: 39.97 kB / 447 MB, free: 236 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.812e-05/0.4281, allocations: 43.84 kB / 447.1 MB, free: 196 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.482e-05/0.4282, allocations: 73.3 kB / 447.1 MB, free: 120 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4283, allocations: 0 / 447.1 MB, free: 120 kB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002985/0.4286, allocations: 202.9 kB / 447.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.4286, allocations: 37.69 kB / 447.4 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.4286, allocations: 7.938 kB / 447.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.4286, allocations: 0 / 447.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.392e-05/0.4287, allocations: 7.938 kB / 447.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.4287, allocations: 0 / 447.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.225e-05/0.4287, allocations: 6.812 kB / 447.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.4288, allocations: 8 kB / 447.4 MB, free: 15.85 MB / 330.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 0.0001272/0.4289, allocations: 143.2 kB / 447.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.4289, allocations: 7.953 kB / 447.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.948e-05/0.429, allocations: 8.625 kB / 447.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.429, allocations: 4 kB / 447.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.429, allocations: 0 / 447.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.429, allocations: 0 / 447.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.4296, allocations: 475 kB / 448 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4296, allocations: 0 / 448 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-06/0.4296, allocations: 0 / 448 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.4296, allocations: 0 / 448 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.4296, allocations: 4 kB / 448 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4296, allocations: 0 / 448 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4296, allocations: 4 kB / 448 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.43, allocations: 328.2 kB / 448.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.4301, allocations: 84.97 kB / 448.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.4301, allocations: 4 kB / 448.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.126e-05/0.4302, allocations: 3.938 kB / 448.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.541e-05/0.4302, allocations: 7.938 kB / 448.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.4302, allocations: 7.984 kB / 448.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.976e-05/0.4303, allocations: 91.03 kB / 448.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4303, allocations: 4 kB / 448.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.4305, allocations: 16 kB / 448.6 MB, free: 14.61 MB / 330.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.0007087/0.4312, allocations: 0.8987 MB / 449.5 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.4314, allocations: 142.6 kB / 449.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4314, allocations: 0 / 449.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.073e-05/0.4314, allocations: 99.39 kB / 449.7 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.4316, allocations: 14.92 kB / 449.7 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.4319, allocations: 170.4 kB / 449.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.4322, allocations: 0.6888 MB / 450.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.554e-05/0.4322, allocations: 3.984 kB / 450.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.232e-05/0.4322, allocations: 11.38 kB / 450.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4322, allocations: 4 kB / 450.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01273/0.445, allocations: 1.526 MB / 452.1 MB, free: 11.01 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.4453, allocations: 199.5 kB / 452.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.487/1.933, allocations: 0 / 452.3 MB, free: 10.77 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat