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.002219/0.002219, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 89 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.258e-05, allocations: 4 kB / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3701, allocations: 47.55 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.5037, allocations: 73.34 MB / 435.8 MB, free: 12.91 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.5041, allocations: 59.97 kB / 435.8 MB, free: 12.86 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.003877/0.508, allocations: 0.8211 MB / 436.6 MB, free: 12.04 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5081, allocations: 0 / 436.6 MB, free: 12.04 MB / 331.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.5081, allocations: 4.844 kB / 436.6 MB, free: 12.04 MB / 331.1 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.0005069/0.5086, allocations: 359.6 kB / 437 MB, free: 11.64 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/0.5087, allocations: 9.281 kB / 437 MB, free: 11.63 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.5088, allocations: 4 kB / 437 MB, free: 11.62 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.509, allocations: 163.7 kB / 437.2 MB, free: 11.43 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.509, allocations: 4 kB / 437.2 MB, free: 11.42 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.5091, allocations: 2.688 kB / 437.2 MB, free: 11.42 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001647/0.5092, allocations: 42.17 kB / 437.2 MB, free: 11.38 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.5095, allocations: 73.66 kB / 437.3 MB, free: 11.3 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.5095, allocations: 0 / 437.3 MB, free: 11.3 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.5095, allocations: 4 kB / 437.3 MB, free: 11.3 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.5096, allocations: 0.8438 kB / 437.3 MB, free: 11.3 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00022/0.5098, allocations: 136.6 kB / 437.4 MB, free: 11.13 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.51, allocations: 54.59 kB / 437.5 MB, free: 11.07 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.5101, allocations: 44.91 kB / 437.5 MB, free: 11.02 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.5102, allocations: 4 kB / 437.5 MB, free: 11.02 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.128e-05/0.5103, allocations: 58.33 kB / 437.6 MB, free: 10.95 MB / 331.1 MB Notification: Performance of pre-optimization done (n=4): time 2.224e-06/0.5103, allocations: 0 / 437.6 MB, free: 10.95 MB / 331.1 MB Notification: Performance of matching and sorting (n=4): time 0.0006226/0.5109, allocations: 169.5 kB / 437.7 MB, free: 10.78 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.511, allocations: 78.31 kB / 437.8 MB, free: 10.68 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.5112, allocations: 107.9 kB / 437.9 MB, free: 10.57 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.5112, allocations: 29.64 kB / 438 MB, free: 10.54 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.5113, allocations: 154.6 kB / 438.1 MB, free: 10.39 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.347e-05/0.5114, allocations: 7.906 kB / 438.1 MB, free: 10.38 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.5114, allocations: 2.188 kB / 438.1 MB, free: 10.38 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.5116, allocations: 310.8 kB / 438.4 MB, free: 10.07 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.5118, allocations: 35.97 kB / 438.5 MB, free: 10.03 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.5119, allocations: 39.97 kB / 438.5 MB, free: 9.992 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.512, allocations: 36.91 kB / 438.5 MB, free: 9.957 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5121, allocations: 0 / 438.5 MB, free: 9.957 MB / 331.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0005072/0.5126, allocations: 156.4 kB / 438.7 MB, free: 9.801 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/0.5127, allocations: 36.42 kB / 438.7 MB, free: 9.762 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.5127, allocations: 0 / 438.7 MB, free: 9.762 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.5127, allocations: 0 / 438.7 MB, free: 9.762 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.97e-06/0.5127, allocations: 3.984 kB / 438.7 MB, free: 9.758 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5127, allocations: 3.953 kB / 438.7 MB, free: 9.754 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.848e-05/0.5128, allocations: 4 kB / 438.7 MB, free: 9.75 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.5129, allocations: 4 kB / 438.7 MB, free: 9.746 MB / 331.1 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.0001633/0.513, allocations: 146.2 kB / 438.9 MB, free: 9.594 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005275/0.5136, allocations: 173.4 kB / 439 MB, free: 9.418 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.5136, allocations: 4 kB / 439 MB, free: 9.414 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.839e-05/0.5137, allocations: 20.33 kB / 439.1 MB, free: 9.395 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.5137, allocations: 2.812 kB / 439.1 MB, free: 9.395 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5137, allocations: 0 / 439.1 MB, free: 9.395 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.5137, allocations: 3.219 kB / 439.1 MB, free: 9.395 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.5139, allocations: 138.2 kB / 439.2 MB, free: 9.223 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.514, allocations: 4 kB / 439.2 MB, free: 9.219 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.443e-06/0.514, allocations: 0 / 439.2 MB, free: 9.219 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.514, allocations: 0 / 439.2 MB, free: 9.219 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.514, allocations: 5.5 kB / 439.2 MB, free: 9.215 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.514, allocations: 0 / 439.2 MB, free: 9.215 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.5141, allocations: 7.938 kB / 439.2 MB, free: 9.207 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000568/0.5146, allocations: 198.9 kB / 439.4 MB, free: 8.996 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.5147, allocations: 81.05 kB / 439.5 MB, free: 8.898 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/0.5148, allocations: 7.984 kB / 439.5 MB, free: 8.891 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.431e-05/0.5148, allocations: 160 / 439.5 MB, free: 8.891 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.338e-05/0.5149, allocations: 4 kB / 439.5 MB, free: 8.887 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.5149, allocations: 11.95 kB / 439.5 MB, free: 8.875 MB / 331.1 MB Notification: Performance of sorting global known variables: time 8.407e-05/0.515, allocations: 93.39 kB / 439.6 MB, free: 8.785 MB / 331.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.515, allocations: 0 / 439.6 MB, free: 8.785 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004272/0.5155, allocations: 12 kB / 439.6 MB, free: 8.773 MB / 331.1 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.001238/0.5167, allocations: 0.7685 MB / 440.4 MB, free: 7.988 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0002712/0.517, allocations: 115.4 kB / 440.5 MB, free: 7.863 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.517, allocations: 0 / 440.5 MB, free: 7.863 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.5172, allocations: 103.3 kB / 440.6 MB, free: 7.75 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.5174, allocations: 0 / 440.6 MB, free: 7.75 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006265/0.518, allocations: 172 kB / 440.8 MB, free: 7.539 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.5185, allocations: 0.6846 MB / 441.5 MB, free: 6.828 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.5185, allocations: 11.44 kB / 441.5 MB, free: 6.816 MB / 331.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5186, allocations: 4 kB / 441.5 MB, free: 6.812 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.75/3.269, allocations: 0.9149 MB / 442.4 MB, free: 5.922 MB / 331.1 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