Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000874/0.000874, 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.201/1.201, allocations: 225.7 MB / 243.2 MB, free: 8.508 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.0007888/0.0007887, allocations: 102 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002333, allocations: 4 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002104/0.1967, allocations: 2.329 MB / 406.9 MB, free: 29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009055/0.1977, allocations: 0.7854 MB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1978, allocations: 8 kB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001896/0.198, allocations: 43.69 kB / 407.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.1982, allocations: 88 kB / 407.8 MB, free: 28.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.1984, allocations: 89.31 kB / 407.9 MB, free: 27.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.1986, allocations: 335.9 kB / 408.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1988, allocations: 91.42 kB / 408.3 MB, free: 27.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1989, allocations: 119.5 kB / 408.5 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1991, allocations: 139.3 kB / 408.6 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.1991, allocations: 16 kB / 408.6 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.732e-05/0.1991, allocations: 17.94 kB / 408.6 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.736e-05/0.1992, allocations: 47.78 kB / 408.7 MB, free: 27.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.865e-05/0.1993, allocations: 157 kB / 408.8 MB, free: 27.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.1995, allocations: 348.1 kB / 409.2 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1995, allocations: 0 / 409.2 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1995, allocations: 0.5625 kB / 409.2 MB, free: 26.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1995, allocations: 3.938 kB / 409.2 MB, free: 26.74 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006873/0.2002, allocations: 0.5587 MB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2003, allocations: 8.031 kB / 409.7 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.2003, allocations: 36.47 kB / 409.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.2006, allocations: 263.7 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.2006, allocations: 16.94 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.57e-05/0.2007, allocations: 28.38 kB / 410.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.2011, allocations: 253.1 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2011, allocations: 0 / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.2011, allocations: 20 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2011, allocations: 8 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000369/0.2015, allocations: 210.1 kB / 410.6 MB, free: 25.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2027, allocations: 1.017 MB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.203, allocations: 202.5 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.2033, allocations: 112.8 kB / 411.9 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.2033, allocations: 4 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.286e-05/0.2033, allocations: 34.97 kB / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.2033, allocations: 0 / 411.9 MB, free: 23.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.004161/0.2075, allocations: 1.553 MB / 413.5 MB, free: 22.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.144e-05/0.2075, allocations: 59.34 kB / 413.5 MB, free: 22.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.2077, allocations: 225 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.2077, allocations: 29.7 kB / 413.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/0.2078, allocations: 180.2 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.2078, allocations: 126.1 kB / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.2079, allocations: 12 kB / 414.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.2079, allocations: 330.8 kB / 414.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.2081, allocations: 112.7 kB / 414.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.2083, allocations: 161.5 kB / 414.7 MB, free: 20.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.2087, allocations: 280 kB / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2088, allocations: 0 / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001302/0.2101, allocations: 0.5373 MB / 415.5 MB, free: 20.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2101, allocations: 8 kB / 415.5 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.2101, allocations: 0 / 415.5 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/0.2113, allocations: 257.4 kB / 415.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.2116, allocations: 63.91 kB / 415.8 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.215, allocations: 3.74 MB / 419.5 MB, free: 15.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.2152, allocations: 12.02 kB / 419.6 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.2153, allocations: 20 kB / 419.6 MB, free: 15.69 MB / 298.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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.2154, allocations: 149.8 kB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.2154, allocations: 27.62 kB / 419.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.071e-05/0.2155, allocations: 46.95 kB / 419.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2155, allocations: 8.219 kB / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2155, allocations: 0 / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2156, allocations: 0 / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001728/0.2173, allocations: 0.9892 MB / 420.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2173, allocations: 0 / 420.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.2175, allocations: 47.91 kB / 420.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.2187, allocations: 249.7 kB / 421.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.2187, allocations: 8 kB / 421.1 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.2219, allocations: 3.729 MB / 424.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.222, allocations: 3.984 kB / 424.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.2235, allocations: 0.7379 MB / 425.6 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.2235, allocations: 100.9 kB / 425.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.2236, allocations: 15.94 kB / 425.7 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.2238, allocations: 11.98 kB / 425.7 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.915e-05/0.2238, allocations: 36.02 kB / 425.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2239, allocations: 8 kB / 425.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001034/0.224, allocations: 160.5 kB / 425.9 MB, free: 8.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.224, allocations: 288 / 425.9 MB, free: 8.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000499/0.2245, allocations: 100 kB / 426 MB, free: 8.883 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 9.758e-05/0.2246, allocations: 119.2 kB / 426.1 MB, free: 8.758 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007398/0.2253, allocations: 0.5748 MB / 426.7 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2254, allocations: 4 kB / 426.7 MB, free: 8.152 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.2258, allocations: 437.2 kB / 427.1 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.2261, allocations: 29.5 kB / 427.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009352/0.227, allocations: 0.8684 MB / 428 MB, free: 6.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.2272, allocations: 0.776 MB / 428.8 MB, free: 5.965 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.592e-05/0.2273, allocations: 22.28 kB / 428.8 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.2273, allocations: 23.38 kB / 428.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.2273, allocations: 0 / 428.8 MB, free: 5.918 MB / 298.7 MB Notification: Performance of Templates: time 0.007899/0.2352, allocations: 5.251 MB / 434.1 MB, free: 0.668 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches