Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.585/1.585, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 16 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07876/0.07914, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4043, allocations: 68.7 MB / 340.8 MB, free: 4.766 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4046, allocations: 68.91 kB / 340.9 MB, free: 4.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0174/0.422, allocations: 4.026 MB / 344.9 MB, free: 1.297 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.422, allocations: 3.938 kB / 344.9 MB, free: 1.293 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.4221, allocations: 4 kB / 344.9 MB, free: 1.289 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001022/0.4231, allocations: 0.5055 MB / 345.4 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.4232, allocations: 8.031 kB / 345.4 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.038e-05/0.4232, allocations: 56.23 kB / 345.5 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.824e-05/0.4233, allocations: 27.72 kB / 345.5 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.4237, allocations: 236.6 kB / 345.7 MB, free: 412 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.4237, allocations: 17.88 kB / 345.8 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.631e-05/0.4238, allocations: 20.31 kB / 345.8 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.4244, allocations: 230.2 kB / 346 MB, free: 208 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.4244, allocations: 0 / 346 MB, free: 208 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.4245, allocations: 14.98 kB / 346 MB, free: 200 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.4245, allocations: 4 kB / 346 MB, free: 196 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000512/0.425, allocations: 166.7 kB / 346.2 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.427, allocations: 0.8561 MB / 347 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004364/0.4275, allocations: 159 kB / 347.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.4275, allocations: 0 / 347.2 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.4276, allocations: 34.5 kB / 347.2 MB, free: 15.13 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 1.943e-06/0.4276, allocations: 4 kB / 347.2 MB, free: 15.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.001966/0.4296, allocations: 434.8 kB / 347.7 MB, free: 14.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.4296, allocations: 51.41 kB / 347.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.4298, allocations: 163 kB / 347.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.4299, allocations: 29.7 kB / 347.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.43, allocations: 220.4 kB / 348.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.4301, allocations: 58.23 kB / 348.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.4301, allocations: 3.562 kB / 348.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4303, allocations: 322 kB / 348.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.4305, allocations: 57.22 kB / 348.5 MB, free: 13.89 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.4307, allocations: 97.22 kB / 348.6 MB, free: 13.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.431, allocations: 72.22 kB / 348.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.431, allocations: 0 / 348.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007396/0.4317, allocations: 237.7 kB / 348.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.4318, allocations: 4 kB / 348.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4318, allocations: 4 kB / 348.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002105/0.4339, allocations: 222.2 kB / 349.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.4342, allocations: 35.97 kB / 349.2 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006376/0.4348, allocations: 0.619 MB / 349.8 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.4351, allocations: 19.41 kB / 349.8 MB, free: 12.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.4351, allocations: 11.62 kB / 349.8 MB, free: 12.7 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (17): * Single equations (assignments): 16 * 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.0001818/0.4353, allocations: 128.8 kB / 350 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.4354, allocations: 27.73 kB / 350 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/0.4361, allocations: 227.1 kB / 350.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.4361, allocations: 3.953 kB / 350.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4361, allocations: 4 kB / 350.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4361, allocations: 3.984 kB / 350.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004688/0.4366, allocations: 290.2 kB / 350.5 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4366, allocations: 0 / 350.5 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.4369, allocations: 31.92 kB / 350.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.4389, allocations: 222.3 kB / 350.8 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.4389, allocations: 3.75 kB / 350.8 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000615/0.4395, allocations: 0.6226 MB / 351.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4396, allocations: 64 / 351.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/0.4404, allocations: 391.5 kB / 351.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.4406, allocations: 114.4 kB / 351.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.4406, allocations: 0 / 351.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.4409, allocations: 19.48 kB / 351.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-05/0.441, allocations: 11.98 kB / 351.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.441, allocations: 7.5 kB / 351.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.4411, allocations: 129.3 kB / 352 MB, free: 10.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4412, allocations: 0 / 352 MB, free: 10.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004413/0.4416, allocations: 65.58 kB / 352.1 MB, free: 10.6 MB / 282.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.001241/0.4429, allocations: 0.9411 MB / 353 MB, free: 9.715 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006086/0.4435, allocations: 171.6 kB / 353.2 MB, free: 9.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4435, allocations: 0 / 353.2 MB, free: 9.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.4438, allocations: 93.45 kB / 353.3 MB, free: 9.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.4442, allocations: 22.52 kB / 353.3 MB, free: 9.504 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.4475, allocations: 2.027 MB / 355.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.4479, allocations: 0.7556 MB / 356.1 MB, free: 6.781 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.4481, allocations: 61.17 kB / 356.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of SimCode: time 1.283e-06/0.4481, allocations: 0 / 356.2 MB, free: 6.762 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.472/2.92, allocations: 4.056 MB / 360.2 MB, free: 2.738 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat