Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009133/0.0009132, allocations: 184.3 kB / 16.71 MB, free: 4.973 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 225.7 MB / 243.2 MB, free: 8.512 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007492/0.0007492, allocations: 97.8 kB / 294.4 MB, free: 9.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002537/0.0002537, allocations: 8 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.206, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001535/0.2076, allocations: 1.697 MB / 406.3 MB, free: 29.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006129/0.2082, allocations: 0.5288 MB / 406.8 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.475e-05/0.2083, allocations: 0.5 kB / 406.8 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.2084, allocations: 17.31 kB / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2085, allocations: 31.7 kB / 406.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.2088, allocations: 80.73 kB / 406.9 MB, free: 28.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.2089, allocations: 179.2 kB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.2091, allocations: 44.09 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.2092, allocations: 75.7 kB / 407.2 MB, free: 28.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.549e-05/0.2093, allocations: 63.75 kB / 407.3 MB, free: 28.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.2093, allocations: 16.5 kB / 407.3 MB, free: 28.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.604e-05/0.2094, allocations: 8 kB / 407.3 MB, free: 28.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.2094, allocations: 32.67 kB / 407.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.2095, allocations: 93.36 kB / 407.4 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.2096, allocations: 153.5 kB / 407.6 MB, free: 28.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2096, allocations: 0.8438 kB / 407.6 MB, free: 28.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2096, allocations: 0 / 407.6 MB, free: 28.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.2096, allocations: 0 / 407.6 MB, free: 28.3 MB / 298.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.0006068/0.2102, allocations: 456.5 kB / 408 MB, free: 27.81 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2103, allocations: 8.031 kB / 408 MB, free: 27.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.2103, allocations: 12.84 kB / 408 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.2105, allocations: 198.3 kB / 408.2 MB, free: 27.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.2105, allocations: 13.16 kB / 408.3 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.2105, allocations: 16.38 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002766/0.2108, allocations: 156.3 kB / 408.4 MB, free: 27.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.2108, allocations: 0 / 408.4 MB, free: 27.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.2109, allocations: 8 kB / 408.4 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.2109, allocations: 0 / 408.4 MB, free: 27.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.2111, allocations: 99.94 kB / 408.5 MB, free: 27.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.2119, allocations: 0.5148 MB / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.2121, allocations: 106.5 kB / 409.1 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.2123, allocations: 68.83 kB / 409.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.2123, allocations: 0 / 409.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.2124, allocations: 34.5 kB / 409.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 7.92e-07/0.2124, allocations: 8 kB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004093/0.2128, allocations: 145.7 kB / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.2128, allocations: 110.8 kB / 409.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.2129, allocations: 158.3 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.2129, allocations: 25.7 kB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.213, allocations: 127.7 kB / 409.8 MB, free: 25.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.213, allocations: 31.58 kB / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.213, allocations: 0 / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.958e-05/0.2131, allocations: 322.8 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2132, allocations: 43.98 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.2133, allocations: 72.27 kB / 410.3 MB, free: 25.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.2135, allocations: 114.8 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2135, allocations: 0 / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002657/0.2138, allocations: 149.5 kB / 410.5 MB, free: 25.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.2138, allocations: 7.938 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2138, allocations: 4 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2138, allocations: 0 / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.2144, allocations: 79.92 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009792/0.2154, allocations: 1.405 MB / 412 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2155, allocations: 23.95 kB / 412 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.2155, allocations: 7.984 kB / 412.1 MB, free: 23.43 MB / 298.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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.2156, allocations: 129.7 kB / 412.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.2157, allocations: 11.81 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003766/0.216, allocations: 167.2 kB / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.216, allocations: 0 / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.31e-07/0.2161, allocations: 0 / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2161, allocations: 0 / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005494/0.2166, allocations: 472 kB / 412.8 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2166, allocations: 4.031 kB / 412.8 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.2168, allocations: 27.97 kB / 412.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000231/0.217, allocations: 40.77 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.217, allocations: 4 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006456/0.2177, allocations: 1.3 MB / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2177, allocations: 0 / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004651/0.2182, allocations: 309.2 kB / 414.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.2182, allocations: 88.86 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.2182, allocations: 7.938 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.2184, allocations: 19.98 kB / 414.6 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.2184, allocations: 7.984 kB / 414.6 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.2184, allocations: 4.062 kB / 414.6 MB, free: 20.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.676e-05/0.2185, allocations: 123.3 kB / 414.7 MB, free: 20.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2185, allocations: 0 / 414.7 MB, free: 20.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.2188, allocations: 39.94 kB / 414.8 MB, free: 20.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001082/0.2189, allocations: 103.2 kB / 414.9 MB, free: 20.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005882/0.2195, allocations: 143.8 kB / 415 MB, free: 20.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2195, allocations: 0 / 415 MB, free: 20.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.2197, allocations: 166.7 kB / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.22, allocations: 12 kB / 415.2 MB, free: 20.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.2212, allocations: 0.6225 MB / 415.8 MB, free: 19.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.2214, allocations: 0.7121 MB / 416.5 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.165e-05/0.2214, allocations: 20.41 kB / 416.5 MB, free: 18.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.2215, allocations: 15.38 kB / 416.6 MB, free: 18.58 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2215, allocations: 0 / 416.6 MB, free: 18.58 MB / 298.7 MB Notification: Performance of Templates: time 0.003317/0.2248, allocations: 1.511 MB / 418.1 MB, free: 17.09 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches