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.001449/0.001449, allocations: 201.8 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009023/0.0009022, allocations: 95.09 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002362/0.0002361, allocations: 8 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2112, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08928/0.3005, allocations: 75.75 MB / 485.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.3007, allocations: 63.97 kB / 485.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001892/0.3026, allocations: 0.831 MB / 486.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3026, allocations: 0 / 486.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3027, allocations: 0 / 486.1 MB, free: 13.96 MB / 362.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.0003035/0.303, allocations: 375.1 kB / 486.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.303, allocations: 11.97 kB / 486.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.174e-05/0.3031, allocations: 38.47 kB / 486.5 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.3031, allocations: 7.906 kB / 486.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.3032, allocations: 163.1 kB / 486.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.3033, allocations: 7.312 kB / 486.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.3033, allocations: 7.953 kB / 486.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.3034, allocations: 81.66 kB / 486.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.3034, allocations: 0 / 486.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3035, allocations: 3.984 kB / 486.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.3035, allocations: 0 / 486.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.893e-05/0.3035, allocations: 47.91 kB / 486.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002717/0.3038, allocations: 248.9 kB / 487.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.3039, allocations: 81.91 kB / 487.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.304, allocations: 0 / 487.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.304, allocations: 64.27 kB / 487.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 9.11e-07/0.304, allocations: 3.938 kB / 487.2 MB, free: 12.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004535/0.3045, allocations: 340.4 kB / 487.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3045, allocations: 85.11 kB / 487.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.705e-05/0.3046, allocations: 105 kB / 487.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3046, allocations: 25.7 kB / 487.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.3047, allocations: 84.14 kB / 487.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.3047, allocations: 15.8 kB / 487.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/0.3047, allocations: 8 kB / 487.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3048, allocations: 310.8 kB / 488.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.944e-05/0.3049, allocations: 43.97 kB / 488.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.115e-05/0.3049, allocations: 39.97 kB / 488.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.731e-05/0.305, allocations: 81.55 kB / 488.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.305, allocations: 0 / 488.4 MB, free: 11.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002576/0.3053, allocations: 219.1 kB / 488.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.3054, allocations: 29.7 kB / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3054, allocations: 0 / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3054, allocations: 0 / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.947e-05/0.3054, allocations: 7.984 kB / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.3054, allocations: 0 / 488.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.22e-05/0.3054, allocations: 4 kB / 488.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.3055, allocations: 8 kB / 488.6 MB, free: 11.2 MB / 362.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 9.382e-05/0.3056, allocations: 151.5 kB / 488.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.3056, allocations: 11.86 kB / 488.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.102e-05/0.3056, allocations: 8.375 kB / 488.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3056, allocations: 4.375 kB / 488.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3057, allocations: 0 / 488.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3057, allocations: 0 / 488.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.3061, allocations: 480.1 kB / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3062, allocations: 0 / 489.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-06/0.3062, allocations: 8 kB / 489.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3062, allocations: 0 / 489.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.3062, allocations: 8 kB / 489.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3062, allocations: 0 / 489.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3062, allocations: 3.938 kB / 489.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.3065, allocations: 317.1 kB / 489.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.3066, allocations: 85.05 kB / 489.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.3066, allocations: 7.984 kB / 489.7 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.484e-05/0.3067, allocations: 8 kB / 489.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.098e-05/0.3067, allocations: 0 / 489.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.3067, allocations: 12 kB / 489.7 MB, free: 9.996 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.241e-05/0.3068, allocations: 87.27 kB / 489.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3068, allocations: 0 / 489.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002148/0.307, allocations: 16 kB / 489.8 MB, free: 9.895 MB / 362.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.0007913/0.3078, allocations: 0.9092 MB / 490.7 MB, free: 8.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.308, allocations: 147.4 kB / 490.9 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.308, allocations: 0 / 490.9 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.273e-05/0.3081, allocations: 103.3 kB / 491 MB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001171/0.3082, allocations: 7.281 kB / 491 MB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007787/0.309, allocations: 0.5656 MB / 491.5 MB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3093, allocations: 0.6887 MB / 492.2 MB, free: 7.363 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.89e-05/0.3093, allocations: 4 kB / 492.2 MB, free: 7.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.979e-05/0.3093, allocations: 15.42 kB / 492.2 MB, free: 7.344 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.3093, allocations: 4 kB / 492.2 MB, free: 7.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01166/0.321, allocations: 1.539 MB / 493.8 MB, free: 5.93 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/0.3212, allocations: 211 kB / 494 MB, free: 5.695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.435/1.756, allocations: 64 / 494 MB, free: 5.695 MB / 362.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