Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001746/0.001746, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.717/1.717, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 90.45 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.804e-05/3.805e-05, allocations: 7.984 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1375, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4649/0.6025, allocations: 75.68 MB / 477.8 MB, free: 13.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.6027, allocations: 64.23 kB / 477.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001564/0.6043, allocations: 0.8258 MB / 478.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6043, allocations: 0.5625 kB / 478.7 MB, free: 12.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.6043, allocations: 0.5938 kB / 478.7 MB, free: 12.94 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.0002783/0.6046, allocations: 363.5 kB / 479 MB, free: 12.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.6047, allocations: 12.78 kB / 479 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.391e-05/0.6048, allocations: 41.56 kB / 479.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.6048, allocations: 5.5 kB / 479.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.426e-05/0.6049, allocations: 163 kB / 479.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.6049, allocations: 8.484 kB / 479.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.6049, allocations: 0.5625 kB / 479.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.6051, allocations: 92.94 kB / 479.3 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.6051, allocations: 0 / 479.3 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.6051, allocations: 0 / 479.3 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.6051, allocations: 4.609 kB / 479.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.206e-05/0.6052, allocations: 43.47 kB / 479.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002208/0.6054, allocations: 252.1 kB / 479.6 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.479e-05/0.6055, allocations: 73.86 kB / 479.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.266e-05/0.6056, allocations: 70.53 kB / 479.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.6056, allocations: 0 / 479.8 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.6057, allocations: 64.25 kB / 479.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.6057, allocations: 0 / 479.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003333/0.606, allocations: 210.8 kB / 480.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.6061, allocations: 85.09 kB / 480.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.624e-05/0.6062, allocations: 101.6 kB / 480.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.6062, allocations: 29.7 kB / 480.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.5e-05/0.6062, allocations: 83.83 kB / 480.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.6062, allocations: 19.7 kB / 480.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-06/0.6062, allocations: 7.562 kB / 480.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.73e-05/0.6063, allocations: 310.8 kB / 480.7 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.6064, allocations: 43.66 kB / 480.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.635e-05/0.6064, allocations: 51.06 kB / 480.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.423e-05/0.6065, allocations: 69.67 kB / 480.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6065, allocations: 0 / 480.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002091/0.6067, allocations: 222.4 kB / 481.1 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.6067, allocations: 33.7 kB / 481.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.6068, allocations: 0 / 481.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.6068, allocations: 0.5625 kB / 481.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.04e-05/0.6068, allocations: 4.625 kB / 481.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.6068, allocations: 3.984 kB / 481.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.946e-05/0.6068, allocations: 0 / 481.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.6069, allocations: 11.62 kB / 481.1 MB, free: 10.35 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 6.506e-05/0.6069, allocations: 130.7 kB / 481.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.607, allocations: 13.45 kB / 481.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.607, allocations: 16.23 kB / 481.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.607, allocations: 0 / 481.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.607, allocations: 0.9375 kB / 481.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.607, allocations: 0 / 481.3 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003669/0.6074, allocations: 470.5 kB / 481.7 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6074, allocations: 4 kB / 481.7 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-06/0.6074, allocations: 0.5156 kB / 481.7 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.6074, allocations: 3.984 kB / 481.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.6075, allocations: 9.125 kB / 481.7 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6075, allocations: 0 / 481.7 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6075, allocations: 0 / 481.7 MB, free: 9.668 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.6077, allocations: 324 kB / 482.1 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.942e-05/0.6078, allocations: 88.91 kB / 482.1 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.6078, allocations: 7.516 kB / 482.2 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.167e-05/0.6078, allocations: 3.625 kB / 482.2 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.843e-05/0.6079, allocations: 13.95 kB / 482.2 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.6079, allocations: 4.625 kB / 482.2 MB, free: 9.219 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.599e-05/0.6079, allocations: 91.91 kB / 482.3 MB, free: 9.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6079, allocations: 0 / 482.3 MB, free: 9.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000198/0.6081, allocations: 15.98 kB / 482.3 MB, free: 9.117 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.0006615/0.6088, allocations: 0.8896 MB / 483.2 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.609, allocations: 141.3 kB / 483.3 MB, free: 8.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.609, allocations: 4 kB / 483.3 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.412e-05/0.6091, allocations: 98.7 kB / 483.4 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.6092, allocations: 8.281 kB / 483.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003326/0.6095, allocations: 157.1 kB / 483.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/0.6097, allocations: 0.6887 MB / 484.3 MB, free: 7.094 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.562e-05/0.6097, allocations: 4 kB / 484.3 MB, free: 7.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.6098, allocations: 11.06 kB / 484.3 MB, free: 7.082 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6098, allocations: 0 / 484.3 MB, free: 7.082 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.6227, allocations: 1.535 MB / 485.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/0.6229, allocations: 185.5 kB / 486 MB, free: 5.551 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.424, allocations: 0 / 486 MB, free: 5.551 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat