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.001887/0.001887, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009411/0.0009409, allocations: 85.73 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.561e-05/1.557e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09467, allocations: 50.42 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3672/0.4619, allocations: 74.21 MB / 461.8 MB, free: 4.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.4622, allocations: 59.97 kB / 461.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002625/0.4649, allocations: 0.832 MB / 462.6 MB, free: 3.637 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4649, allocations: 0 / 462.6 MB, free: 3.637 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.4649, allocations: 0.9062 kB / 462.6 MB, free: 3.637 MB / 330.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.0003277/0.4653, allocations: 360.5 kB / 463 MB, free: 3.238 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4653, allocations: 9.031 kB / 463 MB, free: 3.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.4654, allocations: 7.953 kB / 463 MB, free: 3.223 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.4655, allocations: 167.8 kB / 463.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.4656, allocations: 0 / 463.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.4656, allocations: 4 kB / 463.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/0.4657, allocations: 35.97 kB / 463.2 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.4659, allocations: 77.59 kB / 463.3 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.4659, allocations: 2.625 kB / 463.3 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.466, allocations: 4 kB / 463.3 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.466, allocations: 3.953 kB / 463.3 MB, free: 2.891 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.4662, allocations: 134.3 kB / 463.4 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.4663, allocations: 54.55 kB / 463.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.163e-05/0.4664, allocations: 48.92 kB / 463.5 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.4664, allocations: 0 / 463.5 MB, free: 2.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.019e-05/0.4665, allocations: 64.25 kB / 463.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.553e-06/0.4665, allocations: 0 / 463.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004645/0.467, allocations: 165.5 kB / 463.8 MB, free: 2.363 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.467, allocations: 77.11 kB / 463.8 MB, free: 2.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.4672, allocations: 105 kB / 463.9 MB, free: 2.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.4672, allocations: 25.7 kB / 464 MB, free: 2.129 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.4673, allocations: 92.17 kB / 464.1 MB, free: 2.035 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.4673, allocations: 3.906 kB / 464.1 MB, free: 2.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/0.4674, allocations: 0 / 464.1 MB, free: 2.031 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4675, allocations: 322.8 kB / 464.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.169e-05/0.4676, allocations: 36.73 kB / 464.4 MB, free: 1.672 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.307e-05/0.4677, allocations: 35.97 kB / 464.4 MB, free: 1.637 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.101e-05/0.4678, allocations: 35.97 kB / 464.5 MB, free: 1.602 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.4678, allocations: 0 / 464.5 MB, free: 1.602 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003607/0.4682, allocations: 161.6 kB / 464.6 MB, free: 1.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.342e-05/0.4682, allocations: 39.02 kB / 464.7 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4683, allocations: 0 / 464.7 MB, free: 1.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.4683, allocations: 3.938 kB / 464.7 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.4683, allocations: 3.938 kB / 464.7 MB, free: 1.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.4683, allocations: 4.719 kB / 464.7 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.418e-05/0.4684, allocations: 0 / 464.7 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.4684, allocations: 15.98 kB / 464.7 MB, free: 1.367 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: 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.0001185/0.4685, allocations: 134.6 kB / 464.8 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003781/0.4689, allocations: 177.5 kB / 465 MB, free: 1.043 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.469, allocations: 4.031 kB / 465 MB, free: 1.039 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.469, allocations: 8.344 kB / 465 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.469, allocations: 0 / 465 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.469, allocations: 0 / 465 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.469, allocations: 4 kB / 465 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.4692, allocations: 142.2 kB / 465.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4692, allocations: 0 / 465.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.143e-06/0.4692, allocations: 0 / 465.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4692, allocations: 0 / 465.2 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.4693, allocations: 4 kB / 465.2 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4693, allocations: 0 / 465.2 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4693, allocations: 8 kB / 465.2 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.4697, allocations: 200.8 kB / 465.4 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.4698, allocations: 81.11 kB / 465.4 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.4698, allocations: 0 / 465.4 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.814e-05/0.4699, allocations: 4.25 kB / 465.5 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.246e-05/0.4699, allocations: 0 / 465.5 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.4699, allocations: 15.98 kB / 465.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.47, allocations: 87.28 kB / 465.6 MB, free: 428 kB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.47, allocations: 4.031 kB / 465.6 MB, free: 424 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003325/0.4704, allocations: 8 kB / 465.6 MB, free: 416 kB / 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: 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.0009523/0.4713, allocations: 0.7727 MB / 466.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001997/0.4716, allocations: 123.4 kB / 466.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4716, allocations: 0 / 466.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.314e-05/0.4717, allocations: 95.39 kB / 466.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.4718, allocations: 0 / 466.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000463/0.4723, allocations: 149.4 kB / 466.7 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.4726, allocations: 0.6807 MB / 467.4 MB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.285e-06/0.4726, allocations: 4.125 kB / 467.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.4727, allocations: 19.36 kB / 467.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of SimCode: time 8.12e-07/0.4727, allocations: 0 / 467.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.495, allocations: 1.064 MB / 468.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003746/0.4955, allocations: 174.6 kB / 468.6 MB, free: 13.21 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.438/1.934, allocations: 4 kB / 468.6 MB, free: 13.21 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