Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.123/2.123, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003444, allocations: 8 kB / 264 MB, free: 13.51 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 44.52 MB / 308.5 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5583, allocations: 69.79 MB / 378.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.5586, allocations: 59.31 kB / 378.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00274/0.5613, allocations: 0.8292 MB / 379.2 MB, free: 14.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.179e-06/0.5614, allocations: 1.969 kB / 379.2 MB, free: 14.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.5614, allocations: 0 / 379.2 MB, free: 14.15 MB / 314.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.0003958/0.5618, allocations: 334.7 kB / 379.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.5619, allocations: 9.984 kB / 379.5 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.923e-05/0.562, allocations: 42.05 kB / 379.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.562, allocations: 4.422 kB / 379.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.778e-05/0.5622, allocations: 169.9 kB / 379.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.5622, allocations: 4.172 kB / 379.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.5622, allocations: 6.422 kB / 379.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.5625, allocations: 117.1 kB / 379.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.5625, allocations: 0 / 379.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.5625, allocations: 2.984 kB / 379.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.5626, allocations: 0.9375 kB / 379.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.5627, allocations: 50.05 kB / 379.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.5631, allocations: 0.4928 MB / 380.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.5633, allocations: 135.9 kB / 380.6 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.5634, allocations: 1.469 kB / 380.6 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.5634, allocations: 42.47 kB / 380.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 2.214e-06/0.5634, allocations: 0 / 380.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007231/0.5641, allocations: 233.2 kB / 380.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.5642, allocations: 135 kB / 381 MB, free: 12.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.416e-05/0.5643, allocations: 104.1 kB / 381.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.5644, allocations: 26.89 kB / 381.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.819e-05/0.5644, allocations: 159 kB / 381.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.254e-05/0.5645, allocations: 24.84 kB / 381.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.5645, allocations: 0.5 kB / 381.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.396e-05/0.5646, allocations: 321.2 kB / 381.6 MB, free: 12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.5647, allocations: 42.42 kB / 381.6 MB, free: 12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.5648, allocations: 66.77 kB / 381.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.5649, allocations: 43.5 kB / 381.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.565, allocations: 2.203 kB / 381.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000342/0.5653, allocations: 146.6 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.5654, allocations: 6.391 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.5654, allocations: 1.125 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.5654, allocations: 1.188 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.534e-05/0.5655, allocations: 8.344 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.5655, allocations: 2.438 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.825e-05/0.5655, allocations: 5.703 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.5656, allocations: 8.75 kB / 381.9 MB, free: 11.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001261/0.5657, allocations: 129.6 kB / 382 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.5659, allocations: 8.328 kB / 382 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.5659, allocations: 8.812 kB / 382.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.5659, allocations: 5.062 kB / 382.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5659, allocations: 2.75 kB / 382.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.566, allocations: 1.875 kB / 382.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008819/0.5668, allocations: 0.6472 MB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.5669, allocations: 2.156 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.459e-05/0.5669, allocations: 1.312 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.5669, allocations: 2.719 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.5669, allocations: 4.578 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.567, allocations: 1.469 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.567, allocations: 1.219 kB / 382.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004874/0.5675, allocations: 0.5424 MB / 383.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.5675, allocations: 78.55 kB / 383.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.5675, allocations: 4.328 kB / 383.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.5677, allocations: 11.06 kB / 383.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.5678, allocations: 7.344 kB / 383.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.5678, allocations: 8.766 kB / 383.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.521e-05/0.5679, allocations: 89.58 kB / 383.5 MB, free: 10.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5679, allocations: 0 / 383.5 MB, free: 10.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004773/0.5684, allocations: 13.69 kB / 383.5 MB, free: 10.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (success4,$outputAlias_success4,success3,$outputAlias_success3,success2,$outputAlias_success2,success1,$outputAlias_success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009393/0.5693, allocations: 1.325 MB / 384.8 MB, free: 9.508 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.5696, allocations: 86.53 kB / 384.9 MB, free: 9.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5696, allocations: 0 / 384.9 MB, free: 9.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.5698, allocations: 44.59 kB / 384.9 MB, free: 9.496 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.5701, allocations: 4.609 kB / 384.9 MB, free: 9.496 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.5714, allocations: 1.085 MB / 386 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.5716, allocations: 0.6877 MB / 386.7 MB, free: 7.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.5716, allocations: 22.41 kB / 386.7 MB, free: 7.926 MB / 314.7 MB Notification: Performance of SimCode: time 8.21e-07/0.5716, allocations: 0 / 386.7 MB, free: 7.926 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.714/3.286, allocations: 1.101 MB / 387.8 MB, free: 7.852 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat