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.001435/0.001435, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008841/0.0008838, allocations: 86.23 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.645e-05, allocations: 4 kB / 315.6 MB, free: 22.65 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 47.59 MB / 363.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.5051, allocations: 73.58 MB / 436.7 MB, free: 5.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001867/0.5054, allocations: 60.22 kB / 436.8 MB, free: 5.738 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001813/0.5072, allocations: 0.8246 MB / 437.6 MB, free: 5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5072, allocations: 4 kB / 437.6 MB, free: 4.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.5072, allocations: 0 / 437.6 MB, free: 4.996 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.0003302/0.5076, allocations: 364.2 kB / 438 MB, free: 4.594 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.5076, allocations: 8.031 kB / 438 MB, free: 4.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.5077, allocations: 4 kB / 438 MB, free: 4.582 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.5078, allocations: 163 kB / 438.1 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.5078, allocations: 0 / 438.1 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.5079, allocations: 7.938 kB / 438.2 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001025/0.508, allocations: 39.92 kB / 438.2 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.5081, allocations: 80.27 kB / 438.3 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.5081, allocations: 0 / 438.3 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.5081, allocations: 0 / 438.3 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5082, allocations: 0 / 438.3 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.5083, allocations: 132.8 kB / 438.4 MB, free: 4.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.5084, allocations: 60.84 kB / 438.5 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.768e-05/0.5085, allocations: 43.09 kB / 438.5 MB, free: 3.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-06/0.5085, allocations: 0 / 438.5 MB, free: 3.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/0.5086, allocations: 67.89 kB / 438.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.5086, allocations: 0 / 438.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003337/0.5089, allocations: 165.1 kB / 438.7 MB, free: 3.738 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.286e-05/0.509, allocations: 81.88 kB / 438.8 MB, free: 3.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.541e-05/0.5091, allocations: 101.5 kB / 438.9 MB, free: 3.539 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.5091, allocations: 29.7 kB / 438.9 MB, free: 3.504 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.694e-05/0.5092, allocations: 83.89 kB / 439 MB, free: 3.422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.5092, allocations: 7.906 kB / 439 MB, free: 3.414 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-06/0.5092, allocations: 4.031 kB / 439 MB, free: 3.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.5093, allocations: 314.8 kB / 439.3 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.274e-05/0.5094, allocations: 40.67 kB / 439.4 MB, free: 3.059 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/0.5095, allocations: 35.92 kB / 439.4 MB, free: 3.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.763e-05/0.5095, allocations: 35.97 kB / 439.4 MB, free: 2.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.5095, allocations: 0 / 439.4 MB, free: 2.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002304/0.5098, allocations: 164.5 kB / 439.6 MB, free: 2.828 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.5098, allocations: 29.7 kB / 439.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.5098, allocations: 0 / 439.6 MB, free: 2.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.5098, allocations: 4.062 kB / 439.6 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.5098, allocations: 3.125 kB / 439.6 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.5099, allocations: 7.953 kB / 439.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.5099, allocations: 0 / 439.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.5099, allocations: 11.98 kB / 439.7 MB, free: 2.77 MB / 314.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: 4 (success1,success2,success3,success4) * Number of discrete 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.0001056/0.51, allocations: 133.2 kB / 439.8 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002369/0.5103, allocations: 179.6 kB / 440 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.5103, allocations: 3.906 kB / 440 MB, free: 2.449 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.295e-05/0.5103, allocations: 12.3 kB / 440 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.5103, allocations: 4.031 kB / 440 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.5103, allocations: 0 / 440 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5104, allocations: 0 / 440 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.5105, allocations: 145.7 kB / 440.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.5105, allocations: 0 / 440.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.5105, allocations: 0 / 440.1 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.5105, allocations: 3.938 kB / 440.1 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5105, allocations: 4 kB / 440.1 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.5105, allocations: 0 / 440.1 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.5105, allocations: 3.953 kB / 440.1 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.5108, allocations: 198.3 kB / 440.3 MB, free: 2.043 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-05/0.5108, allocations: 81.02 kB / 440.4 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.5109, allocations: 4 kB / 440.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.351e-05/0.5109, allocations: 0 / 440.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.666e-05/0.5109, allocations: 3.984 kB / 440.4 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.5109, allocations: 18.08 kB / 440.4 MB, free: 1.926 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.195e-05/0.511, allocations: 83.28 kB / 440.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.014e-06/0.511, allocations: 0 / 440.5 MB, free: 1.844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000183/0.5112, allocations: 19.92 kB / 440.5 MB, free: 1.824 MB / 314.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0007005/0.5119, allocations: 0.7514 MB / 441.3 MB, free: 1.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.5121, allocations: 132.9 kB / 441.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5121, allocations: 0 / 441.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.431e-05/0.5121, allocations: 93.33 kB / 441.5 MB, free: 0.832 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001037/0.5122, allocations: 4 kB / 441.5 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.5126, allocations: 144.6 kB / 441.7 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.5129, allocations: 0.6885 MB / 442.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.672e-06/0.5129, allocations: 0 / 442.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.025e-05/0.513, allocations: 10.88 kB / 442.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of SimCode: time 1.903e-06/0.513, allocations: 0 / 442.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.5336, allocations: 1.074 MB / 443.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/0.5339, allocations: 164.5 kB / 443.6 MB, free: 14.67 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/2.107, allocations: 0 / 443.6 MB, free: 14.67 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