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.ShowSaturatingInductor.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.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.653/1.653, allocations: 171.2 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003393, allocations: 8 kB / 233.3 MB, free: 2.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08208/0.08245, allocations: 38.76 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002757/0.08525, allocations: 1.62 MB / 273.6 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.08647, allocations: 0.515 MB / 274.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.452e-05/0.08657, allocations: 4 kB / 274.2 MB, free: 9.957 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.812e-05/0.08663, allocations: 15.91 kB / 274.2 MB, free: 9.941 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.08682, allocations: 55.77 kB / 274.2 MB, free: 9.887 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.08721, allocations: 55.92 kB / 274.3 MB, free: 9.832 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.08743, allocations: 115.8 kB / 274.4 MB, free: 9.719 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.0876, allocations: 41.52 kB / 274.4 MB, free: 9.676 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.08778, allocations: 63.77 kB / 274.5 MB, free: 9.613 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.08794, allocations: 59.75 kB / 274.6 MB, free: 9.555 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.08798, allocations: 11.94 kB / 274.6 MB, free: 9.543 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.929e-05/0.08803, allocations: 12 kB / 274.6 MB, free: 9.531 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.906e-05/0.08808, allocations: 23.91 kB / 274.6 MB, free: 9.508 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.287e-05/0.08815, allocations: 49.64 kB / 274.6 MB, free: 9.453 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.08835, allocations: 119.9 kB / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.08837, allocations: 0 / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08838, allocations: 0 / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.08839, allocations: 0 / 274.8 MB, free: 9.336 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008562/0.08926, allocations: 442.7 kB / 275.2 MB, free: 8.855 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.08931, allocations: 8.031 kB / 275.2 MB, free: 8.848 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.198e-05/0.08939, allocations: 46.48 kB / 275.2 MB, free: 8.793 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.08946, allocations: 15.81 kB / 275.3 MB, free: 8.777 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.08971, allocations: 198.8 kB / 275.5 MB, free: 8.543 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.08974, allocations: 8 kB / 275.5 MB, free: 8.535 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.08979, allocations: 8 kB / 275.5 MB, free: 8.527 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003772/0.09018, allocations: 140.2 kB / 275.6 MB, free: 8.375 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.09021, allocations: 0 / 275.6 MB, free: 8.375 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.09024, allocations: 4 kB / 275.6 MB, free: 8.371 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.09026, allocations: 4 kB / 275.6 MB, free: 8.367 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.09056, allocations: 77.19 kB / 275.7 MB, free: 8.293 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.09186, allocations: 0.511 MB / 276.2 MB, free: 7.727 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003727/0.09225, allocations: 82.67 kB / 276.3 MB, free: 7.637 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.09229, allocations: 3.953 kB / 276.3 MB, free: 7.633 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.09233, allocations: 34.56 kB / 276.3 MB, free: 7.59 MB / 234.7 MB Notification: Performance of pre-optimization done (n=7): time 1.824e-06/0.09234, allocations: 0 / 276.3 MB, free: 7.59 MB / 234.7 MB Notification: Performance of matching and sorting (n=7): time 0.00113/0.09348, allocations: 255.4 kB / 276.6 MB, free: 7.312 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.412e-05/0.09357, allocations: 106.8 kB / 276.7 MB, free: 7.184 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.0938, allocations: 150.2 kB / 276.8 MB, free: 7.027 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.09384, allocations: 33.7 kB / 276.9 MB, free: 6.988 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.09398, allocations: 178.6 kB / 277 MB, free: 6.809 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.36e-05/0.09403, allocations: 27.56 kB / 277.1 MB, free: 6.781 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.09406, allocations: 8 kB / 277.1 MB, free: 6.773 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.0942, allocations: 314.8 kB / 277.4 MB, free: 6.457 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.09436, allocations: 31.98 kB / 277.4 MB, free: 6.426 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.09456, allocations: 76.09 kB / 277.5 MB, free: 6.336 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.09474, allocations: 44 kB / 277.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.09475, allocations: 0 / 277.5 MB, free: 6.293 MB / 234.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006752/0.09544, allocations: 154.7 kB / 277.7 MB, free: 6.133 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.09547, allocations: 4 kB / 277.7 MB, free: 6.129 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.09549, allocations: 4.156 kB / 277.7 MB, free: 6.125 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004811/0.09598, allocations: 56.78 kB / 277.7 MB, free: 6.066 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/0.09771, allocations: 143.8 kB / 277.9 MB, free: 5.926 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/0.1018, allocations: 2.821 MB / 280.7 MB, free: 2.84 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.1021, allocations: 19.95 kB / 280.7 MB, free: 2.82 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1021, allocations: 4 kB / 280.7 MB, free: 2.816 MB / 234.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 (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.1023, allocations: 130 kB / 280.8 MB, free: 2.68 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.1024, allocations: 15.81 kB / 280.9 MB, free: 2.664 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006559/0.103, allocations: 151.1 kB / 281 MB, free: 2.512 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.103, allocations: 4 kB / 281 MB, free: 2.508 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.1031, allocations: 3.953 kB / 281 MB, free: 2.504 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1031, allocations: 3.984 kB / 281 MB, free: 2.5 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003684/0.1034, allocations: 221.6 kB / 281.2 MB, free: 2.234 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1035, allocations: 7.938 kB / 281.2 MB, free: 2.227 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.1037, allocations: 15.98 kB / 281.3 MB, free: 2.211 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004619/0.1042, allocations: 60.75 kB / 281.3 MB, free: 2.148 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.1042, allocations: 0 / 281.3 MB, free: 2.148 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.1062, allocations: 1.374 MB / 282.7 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/0.1063, allocations: 11.88 kB / 282.7 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.1071, allocations: 276.3 kB / 283 MB, free: 336 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.1072, allocations: 96.97 kB / 283.1 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.1073, allocations: 3.953 kB / 283.1 MB, free: 216 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.1075, allocations: 11.98 kB / 283.1 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.1076, allocations: 7.938 kB / 283.1 MB, free: 196 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.1076, allocations: 11.98 kB / 283.1 MB, free: 184 kB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001462/0.1078, allocations: 124.1 kB / 283.2 MB, free: 60 kB / 234.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1078, allocations: 4 kB / 283.2 MB, free: 56 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.0004182/0.1082, allocations: 39.91 kB / 283.3 MB, free: 16 kB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * 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 (6): * Single equations (assignments): 5 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001242/0.1095, allocations: 0.8196 MB / 284.1 MB, free: 15.17 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.1115, allocations: 311.4 kB / 284.4 MB, free: 14.85 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1116, allocations: 3.938 kB / 284.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003877/0.112, allocations: 158.7 kB / 284.6 MB, free: 14.68 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.1122, allocations: 4 kB / 284.6 MB, free: 14.67 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.1138, allocations: 0.722 MB / 285.3 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.1141, allocations: 0.7203 MB / 286 MB, free: 13.15 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1143, allocations: 39.42 kB / 286 MB, free: 13.11 MB / 250.7 MB Notification: Performance of SimCode: time 1.203e-06/0.1143, allocations: 0 / 286 MB, free: 13.11 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.629/2.743, allocations: 3.008 MB / 289 MB, free: 10.1 MB / 250.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat