Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.467/2.467, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004463, allocations: 12 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.347, allocations: 54.85 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1689/0.516, allocations: 79.81 MB / 449.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.5164, allocations: 63.97 kB / 449.2 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006608/0.523, allocations: 1.662 MB / 450.9 MB, free: 9.066 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.523, allocations: 0 / 450.9 MB, free: 9.066 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.5231, allocations: 0 / 450.9 MB, free: 9.066 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.0003787/0.5234, allocations: 361.1 kB / 451.2 MB, free: 8.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.5235, allocations: 15.97 kB / 451.2 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.353e-05/0.5236, allocations: 38.5 kB / 451.3 MB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.5236, allocations: 7.859 kB / 451.3 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.5237, allocations: 163.1 kB / 451.4 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.5237, allocations: 0 / 451.4 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.5238, allocations: 0 / 451.4 MB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.208e-05/0.5239, allocations: 29.7 kB / 451.5 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.5239, allocations: 0 / 451.5 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.5239, allocations: 0 / 451.5 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.5239, allocations: 0 / 451.5 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.346e-05/0.524, allocations: 7.953 kB / 451.5 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.5241, allocations: 149.7 kB / 451.6 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.063e-05/0.5242, allocations: 22.52 kB / 451.7 MB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.175e-06/0.5242, allocations: 0 / 451.7 MB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/0.5243, allocations: 60.36 kB / 451.7 MB, free: 8.047 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.363e-06/0.5243, allocations: 0 / 451.7 MB, free: 8.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001909/0.5245, allocations: 59.48 kB / 451.8 MB, free: 7.977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.5246, allocations: 89.08 kB / 451.9 MB, free: 7.871 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.994e-05/0.5246, allocations: 89 kB / 451.9 MB, free: 7.777 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.5246, allocations: 25.7 kB / 452 MB, free: 7.746 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.5247, allocations: 150.6 kB / 452.1 MB, free: 7.598 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.5248, allocations: 0 / 452.1 MB, free: 7.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/0.5248, allocations: 0 / 452.1 MB, free: 7.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5249, allocations: 314.8 kB / 452.4 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.31e-05/0.5249, allocations: 7.938 kB / 452.4 MB, free: 7.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.525, allocations: 4 kB / 452.4 MB, free: 7.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.635e-05/0.525, allocations: 25.7 kB / 452.5 MB, free: 7.238 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.525, allocations: 0 / 452.5 MB, free: 7.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.655e-05/0.5251, allocations: 63.39 kB / 452.5 MB, free: 7.164 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.5252, allocations: 33.7 kB / 452.6 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.5252, allocations: 11.98 kB / 452.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.5252, allocations: 0 / 452.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.492e-06/0.5252, allocations: 0 / 452.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.5252, allocations: 0 / 452.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.558e-05/0.5253, allocations: 4.094 kB / 452.6 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.5253, allocations: 3.938 kB / 452.6 MB, free: 7.105 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.0001461/0.5255, allocations: 147.5 kB / 452.7 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.959e-06/0.5255, allocations: 0 / 452.7 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.642e-05/0.5255, allocations: 3.125 kB / 452.7 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5255, allocations: 0 / 452.7 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.5255, allocations: 0 / 452.7 MB, free: 6.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5255, allocations: 4 kB / 452.7 MB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.5257, allocations: 149.6 kB / 452.9 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5257, allocations: 0 / 452.9 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.687e-06/0.5257, allocations: 7.984 kB / 452.9 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.5257, allocations: 3.984 kB / 452.9 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.5257, allocations: 0 / 452.9 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.5257, allocations: 4 kB / 452.9 MB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.5258, allocations: 0 / 452.9 MB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.5259, allocations: 86.8 kB / 453 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.5259, allocations: 81.09 kB / 453 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.526, allocations: 8.031 kB / 453.1 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.147e-05/0.526, allocations: 0 / 453.1 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.692e-05/0.526, allocations: 7.938 kB / 453.1 MB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.526, allocations: 0 / 453.1 MB, free: 6.504 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.5261, allocations: 75.28 kB / 453.1 MB, free: 6.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5261, allocations: 0 / 453.1 MB, free: 6.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003209/0.5264, allocations: 31.98 kB / 453.2 MB, free: 6.398 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.001034/0.5275, allocations: 0.7943 MB / 454 MB, free: 5.625 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.5276, allocations: 63.33 kB / 454 MB, free: 5.551 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5276, allocations: 4.062 kB / 454 MB, free: 5.547 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-05/0.5277, allocations: 55.41 kB / 454.1 MB, free: 5.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001094/0.5278, allocations: 7.938 kB / 454.1 MB, free: 5.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003566/0.5281, allocations: 146.1 kB / 454.2 MB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.5284, allocations: 0.6809 MB / 454.9 MB, free: 4.574 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.662e-05/0.5285, allocations: 7.438 kB / 454.9 MB, free: 4.566 MB / 378.7 MB Notification: Performance of SimCode: time 7.12e-07/0.5285, allocations: 3.938 kB / 454.9 MB, free: 4.562 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.631/3.159, allocations: 1.12 MB / 456 MB, free: 3.445 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat