Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_cpp_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.002472/0.002472, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001202/0.001202, allocations: 88.44 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004031, allocations: 12 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3262, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1151/0.4413, allocations: 74.08 MB / 448.7 MB, free: 6.684 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.4416, allocations: 67.97 kB / 448.8 MB, free: 6.617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002677/0.4443, allocations: 0.83 MB / 449.6 MB, free: 5.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4444, allocations: 0 / 449.6 MB, free: 5.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.4444, allocations: 0 / 449.6 MB, free: 5.785 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.0003719/0.4448, allocations: 372.8 kB / 450 MB, free: 5.367 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4448, allocations: 8.031 kB / 450 MB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.047e-05/0.4449, allocations: 46.44 kB / 450 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.155e-05/0.445, allocations: 7.906 kB / 450 MB, free: 5.297 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.4451, allocations: 163 kB / 450.2 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.4451, allocations: 7.984 kB / 450.2 MB, free: 5.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.777e-05/0.4452, allocations: 11.95 kB / 450.2 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.4454, allocations: 89.62 kB / 450.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4454, allocations: 0 / 450.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.4455, allocations: 0 / 450.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4455, allocations: 4 kB / 450.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.4456, allocations: 43.97 kB / 450.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003014/0.4459, allocations: 248.8 kB / 450.6 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.4461, allocations: 78.55 kB / 450.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.4461, allocations: 0 / 450.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.812e-05/0.4462, allocations: 64.33 kB / 450.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.4462, allocations: 0 / 450.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007115/0.4469, allocations: 336.4 kB / 451 MB, free: 4.121 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.447, allocations: 85.09 kB / 451.1 MB, free: 4.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.4471, allocations: 105 kB / 451.2 MB, free: 3.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.4472, allocations: 25.7 kB / 451.2 MB, free: 3.879 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.633e-05/0.4472, allocations: 154.6 kB / 451.4 MB, free: 3.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.4473, allocations: 15.81 kB / 451.4 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.4473, allocations: 4 kB / 451.4 MB, free: 3.707 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.4474, allocations: 314.8 kB / 451.7 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.4476, allocations: 39.97 kB / 451.8 MB, free: 3.352 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.4477, allocations: 43.95 kB / 451.8 MB, free: 3.309 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.4478, allocations: 73.67 kB / 451.9 MB, free: 3.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4478, allocations: 0 / 451.9 MB, free: 3.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004733/0.4483, allocations: 219 kB / 452.1 MB, free: 3.004 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.033e-05/0.4484, allocations: 41.69 kB / 452.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.4484, allocations: 0 / 452.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.4484, allocations: 0 / 452.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.325e-05/0.4485, allocations: 448 / 452.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.4485, allocations: 0 / 452.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.324e-05/0.4485, allocations: 4 kB / 452.1 MB, free: 2.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.559e-05/0.4486, allocations: 12 kB / 452.2 MB, free: 2.941 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 () * 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 0.0001359/0.4487, allocations: 147.5 kB / 452.3 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.4488, allocations: 7.953 kB / 452.3 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.4488, allocations: 12.38 kB / 452.3 MB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.4488, allocations: 4 kB / 452.3 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4488, allocations: 0 / 452.3 MB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.4488, allocations: 3.938 kB / 452.3 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007319/0.4496, allocations: 476 kB / 452.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4496, allocations: 0 / 452.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.368e-06/0.4496, allocations: 0 / 452.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4496, allocations: 0 / 452.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.4497, allocations: 4 kB / 452.8 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4497, allocations: 4 kB / 452.8 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4497, allocations: 0 / 452.8 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005454/0.4502, allocations: 329.1 kB / 453.1 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.4503, allocations: 84.97 kB / 453.2 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.4503, allocations: 8 kB / 453.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.727e-05/0.4504, allocations: 0 / 453.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.633e-05/0.4505, allocations: 4 kB / 453.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.4505, allocations: 4 kB / 453.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.208e-05/0.4506, allocations: 95.27 kB / 453.3 MB, free: 1.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4506, allocations: 4 kB / 453.3 MB, free: 1.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002976/0.4509, allocations: 12 kB / 453.3 MB, free: 1.652 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) * 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.001058/0.452, allocations: 0.9189 MB / 454.2 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.4522, allocations: 143.4 kB / 454.4 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4523, allocations: 0 / 454.4 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.4524, allocations: 111.4 kB / 454.5 MB, free: 456 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.4526, allocations: 3.938 kB / 454.5 MB, free: 452 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.4537, allocations: 0.5964 MB / 455.1 MB, free: 15.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.454, allocations: 0.6848 MB / 455.8 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.4541, allocations: 23.42 kB / 455.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of SimCode: time 3.867e-06/0.4541, allocations: 0 / 455.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/3.183, allocations: 1.07 MB / 456.9 MB, free: 13.99 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat