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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.483/2.483, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.671e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4524/0.4525, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.6308, allocations: 78.9 MB / 437 MB, free: 15.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.6311, allocations: 59.91 kB / 437.1 MB, free: 15.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005629/0.6367, allocations: 1.421 MB / 438.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.6368, allocations: 0 / 438.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.6368, allocations: 3.938 kB / 438.5 MB, free: 14.44 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.0003513/0.6372, allocations: 348.2 kB / 438.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.6372, allocations: 8.031 kB / 438.8 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.056e-05/0.6373, allocations: 11.86 kB / 438.9 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.6374, allocations: 159.1 kB / 439 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.6374, allocations: 0 / 439 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.6374, allocations: 0 / 439 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.689e-05/0.6375, allocations: 4 kB / 439 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.274e-05/0.6376, allocations: 41.62 kB / 439.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.6376, allocations: 4 kB / 439.1 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.6377, allocations: 0 / 439.1 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.6377, allocations: 3.953 kB / 439.1 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.6378, allocations: 122.2 kB / 439.2 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.264e-05/0.6379, allocations: 18.61 kB / 439.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.543e-05/0.6379, allocations: 4.859 kB / 439.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.6379, allocations: 4 kB / 439.2 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.638, allocations: 56.27 kB / 439.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.638, allocations: 0 / 439.3 MB, free: 13.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002048/0.6382, allocations: 45.69 kB / 439.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.6383, allocations: 77.11 kB / 439.4 MB, free: 13.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.659e-05/0.6383, allocations: 85 kB / 439.5 MB, free: 13.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.6384, allocations: 25.7 kB / 439.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.935e-05/0.6384, allocations: 158.6 kB / 439.7 MB, free: 13.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.6385, allocations: 0 / 439.7 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.6385, allocations: 0 / 439.7 MB, free: 13.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.6386, allocations: 317 kB / 440 MB, free: 12.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.075e-05/0.6387, allocations: 0 / 440 MB, free: 12.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-06/0.6387, allocations: 0 / 440 MB, free: 12.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.136e-05/0.6387, allocations: 7.984 kB / 440 MB, free: 12.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6388, allocations: 0 / 440 MB, free: 12.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001025/0.6389, allocations: 37.7 kB / 440 MB, free: 12.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.6389, allocations: 37.78 kB / 440 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6389, allocations: 0 / 440 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.639, allocations: 3.938 kB / 440 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.483e-06/0.639, allocations: 0 / 440 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.639, allocations: 4 kB / 440 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.123e-05/0.639, allocations: 0 / 440 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.639, allocations: 3.938 kB / 440.1 MB, free: 12.67 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 () * 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 9.661e-05/0.6391, allocations: 130.6 kB / 440.2 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.186e-05/0.6393, allocations: 41.69 kB / 440.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-06/0.6393, allocations: 4.031 kB / 440.2 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.594e-05/0.6393, allocations: 11.69 kB / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.6393, allocations: 3.938 kB / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.6393, allocations: 0 / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6393, allocations: 4 kB / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.6395, allocations: 134.2 kB / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.6395, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.6395, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.6395, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.6395, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6395, allocations: 8 kB / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6395, allocations: 0 / 440.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.6397, allocations: 65.02 kB / 440.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.6397, allocations: 77.11 kB / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.6398, allocations: 4 kB / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.6398, allocations: 0 / 440.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.822e-05/0.6398, allocations: 7.984 kB / 440.5 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.6398, allocations: 0 / 440.5 MB, free: 12.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.6399, allocations: 79.31 kB / 440.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6399, allocations: 0 / 440.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003021/0.6402, allocations: 23.98 kB / 440.6 MB, free: 12 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) * 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.0008615/0.6411, allocations: 0.7082 MB / 441.3 MB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.6412, allocations: 55.41 kB / 441.4 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6412, allocations: 0 / 441.4 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.749e-05/0.6413, allocations: 59.41 kB / 441.5 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001071/0.6414, allocations: 0 / 441.5 MB, free: 11.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000343/0.6417, allocations: 115.4 kB / 441.6 MB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.642, allocations: 0.6729 MB / 442.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.6421, allocations: 7.438 kB / 442.2 MB, free: 10.28 MB / 378.7 MB Notification: Performance of SimCode: time 2.915e-06/0.6421, allocations: 128 / 442.2 MB, free: 10.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.451/3.093, allocations: 0.9102 MB / 443.2 MB, free: 9.363 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