Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.2/2.2, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004316, allocations: 16 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 54.86 MB / 369.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.4684, allocations: 79.66 MB / 449 MB, free: 10.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4687, allocations: 59.98 kB / 449.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005553/0.4742, allocations: 1.413 MB / 450.5 MB, free: 9.371 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4743, allocations: 0 / 450.5 MB, free: 9.371 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.4743, allocations: 0 / 450.5 MB, free: 9.371 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003915/0.4747, allocations: 365 kB / 450.8 MB, free: 8.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4748, allocations: 8.031 kB / 450.8 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.4748, allocations: 42.48 kB / 450.9 MB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.072e-05/0.4749, allocations: 11.86 kB / 450.9 MB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.475, allocations: 159.1 kB / 451 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.475, allocations: 0 / 451 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.475, allocations: 0 / 451 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.619e-05/0.4751, allocations: 29.7 kB / 451.1 MB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.4751, allocations: 0 / 451.1 MB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.4752, allocations: 3.984 kB / 451.1 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.4752, allocations: 0 / 451.1 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.4752, allocations: 3.953 kB / 451.1 MB, free: 8.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.4754, allocations: 157.7 kB / 451.2 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.362e-05/0.4754, allocations: 18.52 kB / 451.3 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-06/0.4755, allocations: 0 / 451.3 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.532e-05/0.4755, allocations: 56.36 kB / 451.3 MB, free: 8.352 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.4755, allocations: 4 kB / 451.3 MB, free: 8.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/0.4757, allocations: 59.39 kB / 451.4 MB, free: 8.277 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.4758, allocations: 93.17 kB / 451.5 MB, free: 8.168 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.229e-05/0.4759, allocations: 87.22 kB / 451.6 MB, free: 8.078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.4759, allocations: 25.7 kB / 451.6 MB, free: 8.047 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.476, allocations: 150.6 kB / 451.7 MB, free: 7.898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.476, allocations: 0 / 451.7 MB, free: 7.898 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-06/0.476, allocations: 0 / 451.7 MB, free: 7.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4762, allocations: 314.8 kB / 452 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.458e-05/0.4762, allocations: 4 kB / 452 MB, free: 7.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.088e-05/0.4762, allocations: 4 kB / 452 MB, free: 7.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.062e-05/0.4763, allocations: 25.7 kB / 452.1 MB, free: 7.543 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4763, allocations: 0 / 452.1 MB, free: 7.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.403e-05/0.4764, allocations: 67.39 kB / 452.1 MB, free: 7.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.904e-05/0.4764, allocations: 29.7 kB / 452.2 MB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.4764, allocations: 4 kB / 452.2 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.4765, allocations: 7.875 kB / 452.2 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.4765, allocations: 0 / 452.2 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.4765, allocations: 3.984 kB / 452.2 MB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.253e-05/0.4765, allocations: 4.094 kB / 452.2 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.4765, allocations: 4 kB / 452.2 MB, free: 7.406 MB / 378.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: 1 (result) * Number of discrete states: 0 () * Number of clocked 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.0001087/0.4767, allocations: 147.4 kB / 452.3 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.4767, allocations: 0 / 452.3 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.362e-05/0.4767, allocations: 3.125 kB / 452.3 MB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4767, allocations: 0 / 452.3 MB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4767, allocations: 0 / 452.3 MB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.4767, allocations: 0 / 452.3 MB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.4769, allocations: 153.6 kB / 452.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4769, allocations: 0 / 452.5 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-06/0.4769, allocations: 4 kB / 452.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4769, allocations: 0 / 452.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.4769, allocations: 0 / 452.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.4769, allocations: 0 / 452.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.477, allocations: 4 kB / 452.5 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.4771, allocations: 90.78 kB / 452.6 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.722e-05/0.4772, allocations: 81.11 kB / 452.7 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.4772, allocations: 4 kB / 452.7 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.205e-05/0.4772, allocations: 4.031 kB / 452.7 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.4772, allocations: 0 / 452.7 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4772, allocations: 3.938 kB / 452.7 MB, free: 6.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.015e-05/0.4773, allocations: 75.28 kB / 452.7 MB, free: 6.738 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4773, allocations: 0 / 452.7 MB, free: 6.738 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002961/0.4776, allocations: 23.98 kB / 452.8 MB, free: 6.715 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * 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.0008492/0.4784, allocations: 0.7285 MB / 453.5 MB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.4786, allocations: 59.41 kB / 453.5 MB, free: 5.914 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4786, allocations: 7.875 kB / 453.6 MB, free: 5.906 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.411e-05/0.4787, allocations: 63.33 kB / 453.6 MB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.884e-05/0.4788, allocations: 0 / 453.6 MB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.4792, allocations: 146.1 kB / 453.8 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.4795, allocations: 0.6731 MB / 454.4 MB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.4795, allocations: 11.56 kB / 454.4 MB, free: 4.93 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.4795, allocations: 0 / 454.4 MB, free: 4.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.492/2.972, allocations: 0.9126 MB / 455.4 MB, free: 4.02 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat