Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005026/0.0005026, allocations: 8 kB / 264.1 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3422, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4722, allocations: 69.8 MB / 378.4 MB, free: 6.758 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.4725, allocations: 59.97 kB / 378.4 MB, free: 6.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002764/0.4753, allocations: 0.8253 MB / 379.2 MB, free: 5.871 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4753, allocations: 0 / 379.2 MB, free: 5.871 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.4754, allocations: 0 / 379.2 MB, free: 5.871 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.0004218/0.4758, allocations: 347.2 kB / 379.6 MB, free: 5.484 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.4758, allocations: 8.031 kB / 379.6 MB, free: 5.477 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.295e-05/0.4759, allocations: 46.45 kB / 379.6 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.476, allocations: 4 kB / 379.6 MB, free: 5.418 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.4761, allocations: 166.9 kB / 379.8 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.4762, allocations: 4 kB / 379.8 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.4762, allocations: 4 kB / 379.8 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.4765, allocations: 116.9 kB / 379.9 MB, free: 5.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4765, allocations: 0 / 379.9 MB, free: 5.074 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.4765, allocations: 12 kB / 379.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.4765, allocations: 0 / 379.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.4767, allocations: 43.91 kB / 380 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004856/0.4772, allocations: 0.4974 MB / 380.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.4774, allocations: 122.4 kB / 380.6 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.4774, allocations: 4 kB / 380.6 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.4775, allocations: 42.56 kB / 380.6 MB, free: 4.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.844e-06/0.4775, allocations: 0 / 380.6 MB, free: 4.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.00072/0.4782, allocations: 229.5 kB / 380.9 MB, free: 4.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.257e-05/0.4784, allocations: 132.5 kB / 381 MB, free: 3.859 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.4785, allocations: 109.5 kB / 381.1 MB, free: 3.746 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.4785, allocations: 29.7 kB / 381.1 MB, free: 3.711 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.4786, allocations: 87.83 kB / 381.2 MB, free: 3.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.4786, allocations: 27.69 kB / 381.2 MB, free: 3.598 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.4787, allocations: 4 kB / 381.2 MB, free: 3.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4788, allocations: 314.8 kB / 381.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.4789, allocations: 43.97 kB / 381.6 MB, free: 3.234 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.4791, allocations: 67.39 kB / 381.7 MB, free: 3.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.4792, allocations: 51.97 kB / 381.7 MB, free: 3.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4792, allocations: 0 / 381.7 MB, free: 3.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003428/0.4796, allocations: 145.4 kB / 381.8 MB, free: 2.957 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4796, allocations: 4 kB / 381.9 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.4796, allocations: 7.984 kB / 381.9 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4797, allocations: 0 / 381.9 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.571e-05/0.4798, allocations: 8.125 kB / 381.9 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4798, allocations: 0 / 381.9 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.581e-05/0.4798, allocations: 4 kB / 381.9 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.4799, allocations: 8 kB / 381.9 MB, free: 2.926 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.0001265/0.48, allocations: 133.6 kB / 382 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.652e-05/0.4801, allocations: 4 kB / 382 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.382e-05/0.4802, allocations: 11.53 kB / 382 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.4802, allocations: 0 / 382 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.4802, allocations: 4 kB / 382 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4802, allocations: 7.938 kB / 382 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009586/0.4812, allocations: 0.6486 MB / 382.7 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4812, allocations: 0 / 382.7 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.318e-05/0.4812, allocations: 4 kB / 382.7 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4812, allocations: 0 / 382.7 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.4813, allocations: 8.109 kB / 382.7 MB, free: 2.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4813, allocations: 4 kB / 382.7 MB, free: 2.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4813, allocations: 4 kB / 382.7 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.4819, allocations: 0.5318 MB / 383.2 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.4819, allocations: 81.11 kB / 383.3 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.482, allocations: 3.984 kB / 383.3 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.4822, allocations: 11.95 kB / 383.3 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.901e-05/0.4822, allocations: 4 kB / 383.3 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.4822, allocations: 11.98 kB / 383.3 MB, free: 1.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.614e-05/0.4823, allocations: 87.28 kB / 383.4 MB, free: 1.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4823, allocations: 0 / 383.4 MB, free: 1.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004705/0.4828, allocations: 12 kB / 383.4 MB, free: 1.238 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.001248/0.4841, allocations: 1.33 MB / 384.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002226/0.4843, allocations: 75.91 kB / 384.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.4843, allocations: 0 / 384.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.4844, allocations: 48.17 kB / 384.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.4847, allocations: 7.984 kB / 384.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.4862, allocations: 1.06 MB / 386 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.4866, allocations: 0.6887 MB / 386.7 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.611e-05/0.4867, allocations: 4.188 kB / 386.7 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.4867, allocations: 27.42 kB / 386.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4867, allocations: 0 / 386.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09034/0.5771, allocations: 1.475 MB / 388.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003121/0.5775, allocations: 226.5 kB / 388.4 MB, free: 12.19 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/2.992, allocations: 4 kB / 388.4 MB, free: 12.18 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat does not exist to compare? outputFormat=mat