Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.051/1.051, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.895e-05, allocations: 4 kB / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1682, allocations: 25.15 MB / 179.5 MB, free: 0.6914 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07402/0.2422, allocations: 34.95 MB / 214.5 MB, free: 14.04 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.2426, allocations: 63.97 kB / 214.5 MB, free: 13.98 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01297/0.2556, allocations: 2.175 MB / 216.7 MB, free: 11.81 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.012e-05/0.2557, allocations: 0 / 216.7 MB, free: 11.81 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.2557, allocations: 7.938 kB / 216.7 MB, free: 11.8 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008547/0.2566, allocations: 406.2 kB / 217.1 MB, free: 11.36 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.2566, allocations: 12.02 kB / 217.1 MB, free: 11.35 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.2568, allocations: 42.66 kB / 217.2 MB, free: 11.3 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.022e-05/0.2568, allocations: 15.81 kB / 217.2 MB, free: 11.28 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.2571, allocations: 186.9 kB / 217.4 MB, free: 11.06 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.2572, allocations: 8.188 kB / 217.4 MB, free: 11.05 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.2572, allocations: 4 kB / 217.4 MB, free: 11.05 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.2576, allocations: 121.9 kB / 217.5 MB, free: 10.91 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.2577, allocations: 7.891 kB / 217.5 MB, free: 10.91 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.2577, allocations: 11.95 kB / 217.5 MB, free: 10.89 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2577, allocations: 0 / 217.5 MB, free: 10.89 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.258, allocations: 48.56 kB / 217.6 MB, free: 10.85 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.2596, allocations: 499.3 kB / 218.1 MB, free: 10.3 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.2598, allocations: 50.48 kB / 218.1 MB, free: 10.24 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.53e-05/0.2599, allocations: 20.86 kB / 218.1 MB, free: 10.21 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.2599, allocations: 4 kB / 218.1 MB, free: 10.21 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.26, allocations: 30.56 kB / 218.2 MB, free: 10.17 MB / 186.7 MB Notification: Performance of pre-optimization done (n=4): time 2.375e-06/0.26, allocations: 0 / 218.2 MB, free: 10.17 MB / 186.7 MB Notification: Performance of matching and sorting (n=4): time 0.0007265/0.2608, allocations: 102.4 kB / 218.3 MB, free: 10.06 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.2609, allocations: 106.8 kB / 218.4 MB, free: 9.934 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.2611, allocations: 145.3 kB / 218.5 MB, free: 9.785 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.2612, allocations: 29.7 kB / 218.5 MB, free: 9.75 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.2614, allocations: 186.4 kB / 218.7 MB, free: 9.562 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.2614, allocations: 11.81 kB / 218.7 MB, free: 9.551 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-06/0.2614, allocations: 0 / 218.7 MB, free: 9.551 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2616, allocations: 314.8 kB / 219 MB, free: 9.234 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.5e-05/0.2617, allocations: 19.98 kB / 219.1 MB, free: 9.215 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.2619, allocations: 57.16 kB / 219.1 MB, free: 9.141 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.262, allocations: 23.92 kB / 219.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2621, allocations: 448 / 219.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007597/0.2628, allocations: 118.4 kB / 219.2 MB, free: 8.992 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.2629, allocations: 16.08 kB / 219.3 MB, free: 8.977 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2629, allocations: 0 / 219.3 MB, free: 8.977 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000619/0.2636, allocations: 56.69 kB / 219.3 MB, free: 8.918 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/0.2658, allocations: 139.8 kB / 219.5 MB, free: 8.781 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.2703, allocations: 2.772 MB / 222.2 MB, free: 5.738 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000352/0.2707, allocations: 16.02 kB / 222.2 MB, free: 5.723 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.2708, allocations: 4 kB / 222.2 MB, free: 5.719 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: SaturatingInductance1.Psi:VARIABLE(unit = "Wb" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * 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): 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.0002076/0.271, allocations: 109.1 kB / 222.4 MB, free: 5.605 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.151e-05/0.2711, allocations: 11.86 kB / 222.4 MB, free: 5.594 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000698/0.2718, allocations: 122.4 kB / 222.5 MB, free: 5.461 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.2718, allocations: 0 / 222.5 MB, free: 5.461 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2718, allocations: 0 / 222.5 MB, free: 5.461 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2718, allocations: 4 kB / 222.5 MB, free: 5.457 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.2723, allocations: 213.5 kB / 222.7 MB, free: 5.199 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2723, allocations: 0 / 222.7 MB, free: 5.199 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.2725, allocations: 12.05 kB / 222.7 MB, free: 5.188 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005704/0.2731, allocations: 52.81 kB / 222.8 MB, free: 5.133 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.2731, allocations: 4 kB / 222.8 MB, free: 5.129 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/0.2754, allocations: 1.347 MB / 224.1 MB, free: 3.645 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.2754, allocations: 4.172 kB / 224.1 MB, free: 3.641 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007848/0.2762, allocations: 232.1 kB / 224.3 MB, free: 3.395 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.2764, allocations: 100.9 kB / 224.4 MB, free: 3.277 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.215e-05/0.2764, allocations: 0 / 224.4 MB, free: 3.277 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.2768, allocations: 16.11 kB / 224.5 MB, free: 3.262 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.2769, allocations: 4 kB / 224.5 MB, free: 3.258 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.2769, allocations: 3.953 kB / 224.5 MB, free: 3.254 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.2771, allocations: 124.1 kB / 224.6 MB, free: 3.133 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.2771, allocations: 0 / 224.6 MB, free: 3.133 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007177/0.2779, allocations: 36 kB / 224.6 MB, free: 3.098 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (SaturatingInductance1.Psi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * 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.001359/0.2792, allocations: 0.7678 MB / 225.4 MB, free: 2.301 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.2814, allocations: 251.6 kB / 225.6 MB, free: 2.039 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2814, allocations: 0 / 225.6 MB, free: 2.039 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004067/0.2818, allocations: 138.8 kB / 225.8 MB, free: 1.891 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.2822, allocations: 17.2 kB / 225.8 MB, free: 1.875 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.2834, allocations: 289.4 kB / 226.1 MB, free: 1.551 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.2838, allocations: 0.7121 MB / 226.8 MB, free: 0.8125 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.284, allocations: 39.42 kB / 226.8 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of SimCode: time 1.803e-06/0.284, allocations: 0 / 226.8 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.695/2.979, allocations: 2.776 MB / 229.6 MB, free: 13.99 MB / 202.7 MB