Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003685, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09324, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4215/0.5148, allocations: 73.93 MB / 382.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.5152, allocations: 72.3 kB / 382.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01695/0.5322, allocations: 4.023 MB / 386.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5322, allocations: 0 / 386.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.843e-05/0.5322, allocations: 7.969 kB / 386.6 MB, free: 13.92 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009121/0.5332, allocations: 0.5024 MB / 387.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5332, allocations: 9.094 kB / 387.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.196e-05/0.5333, allocations: 52.42 kB / 387.1 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.092e-05/0.5334, allocations: 25.25 kB / 387.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.5337, allocations: 239.1 kB / 387.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.5337, allocations: 23.25 kB / 387.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.359e-05/0.5338, allocations: 20.41 kB / 387.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005612/0.5344, allocations: 219.7 kB / 387.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.5344, allocations: 2.734 kB / 387.6 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.5344, allocations: 8.938 kB / 387.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5345, allocations: 5.031 kB / 387.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.535, allocations: 157.5 kB / 387.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.5369, allocations: 0.8492 MB / 388.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/0.5374, allocations: 154.2 kB / 388.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.5374, allocations: 9.047 kB / 388.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.5375, allocations: 35.81 kB / 388.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=17): time 2.334e-06/0.5375, allocations: 0 / 388.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.001952/0.5394, allocations: 425.5 kB / 389.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.5395, allocations: 54.22 kB / 389.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.5397, allocations: 158.4 kB / 389.5 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.5397, allocations: 29.33 kB / 389.5 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.5398, allocations: 207.2 kB / 389.7 MB, free: 12.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.065e-05/0.5399, allocations: 65.89 kB / 389.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.5399, allocations: 3.375 kB / 389.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.54, allocations: 329.2 kB / 390.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.5402, allocations: 47.55 kB / 390.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.5404, allocations: 82.95 kB / 390.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.5406, allocations: 61.14 kB / 390.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.5406, allocations: 0 / 390.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006722/0.5413, allocations: 229.3 kB / 390.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.5414, allocations: 8.219 kB / 390.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.5414, allocations: 0 / 390.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/0.5434, allocations: 219.8 kB / 390.7 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.5437, allocations: 39.88 kB / 390.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005585/0.5443, allocations: 0.6076 MB / 391.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.5446, allocations: 28.67 kB / 391.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.5446, allocations: 3.812 kB / 391.4 MB, free: 11.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001703/0.5448, allocations: 133.3 kB / 391.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.5449, allocations: 19.39 kB / 391.6 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000652/0.5455, allocations: 244.1 kB / 391.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5455, allocations: 0 / 391.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5456, allocations: 3.906 kB / 391.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.5456, allocations: 1.266 kB / 391.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004199/0.546, allocations: 286.1 kB / 392.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.546, allocations: 0 / 392.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.5463, allocations: 33.12 kB / 392.1 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.5483, allocations: 224.2 kB / 392.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/0.5483, allocations: 7.656 kB / 392.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005362/0.5489, allocations: 0.6152 MB / 393 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5489, allocations: 0 / 393 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.5497, allocations: 396.5 kB / 393.3 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.5499, allocations: 106.8 kB / 393.4 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.55, allocations: 7 kB / 393.5 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002466/0.5502, allocations: 11.88 kB / 393.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.5503, allocations: 11.25 kB / 393.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.5503, allocations: 7.312 kB / 393.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.5505, allocations: 131.7 kB / 393.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5505, allocations: 3.531 kB / 393.6 MB, free: 9.797 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000446/0.5509, allocations: 64.47 kB / 393.7 MB, free: 9.785 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001095/0.552, allocations: 0.9406 MB / 394.6 MB, free: 9.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005783/0.5526, allocations: 157.2 kB / 394.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.5527, allocations: 8 kB / 394.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.553, allocations: 89.64 kB / 394.9 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.5534, allocations: 23.42 kB / 394.9 MB, free: 9.066 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.5563, allocations: 1.711 MB / 396.6 MB, free: 8.043 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.5565, allocations: 0.7421 MB / 397.3 MB, free: 7.344 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.5567, allocations: 62.34 kB / 397.4 MB, free: 7.336 MB / 314.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5567, allocations: 0 / 397.4 MB, free: 7.336 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.569/3.126, allocations: 3.977 MB / 401.4 MB, free: 7.078 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat