Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 192.3 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 91.03 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002496, allocations: 8 kB / 360.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3049, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.001906/0.3069, allocations: 1.71 MB / 413.8 MB, free: 24.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.3079, allocations: 0.8941 MB / 414.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.624e-05/0.3079, allocations: 0 / 414.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.091e-05/0.308, allocations: 15.91 kB / 414.7 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.3081, allocations: 35.69 kB / 414.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.3084, allocations: 87.78 kB / 414.8 MB, free: 23.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.3086, allocations: 178.1 kB / 415 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.3088, allocations: 45.45 kB / 415 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.309, allocations: 71.64 kB / 415.1 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.647e-05/0.3091, allocations: 70.53 kB / 415.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.3091, allocations: 8 kB / 415.2 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.181e-05/0.3092, allocations: 27.92 kB / 415.2 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.649e-05/0.3092, allocations: 23.91 kB / 415.2 MB, free: 22.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.059e-05/0.3093, allocations: 89.36 kB / 415.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.3095, allocations: 172.9 kB / 415.5 MB, free: 22.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3095, allocations: 0 / 415.5 MB, free: 22.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3095, allocations: 4 kB / 415.5 MB, free: 22.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.3095, allocations: 4 kB / 415.5 MB, free: 22.38 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.0006286/0.3101, allocations: 450.8 kB / 415.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3102, allocations: 16.03 kB / 415.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003484/0.3105, allocations: 52.8 kB / 416 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.3107, allocations: 192.1 kB / 416.2 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.3107, allocations: 8.375 kB / 416.2 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.37e-05/0.3108, allocations: 12.38 kB / 416.2 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.3111, allocations: 158.8 kB / 416.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3111, allocations: 0 / 416.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.3112, allocations: 4 kB / 416.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.3112, allocations: 7.984 kB / 416.4 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.3114, allocations: 99.94 kB / 416.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008758/0.3123, allocations: 0.507 MB / 417 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.3126, allocations: 114.5 kB / 417.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.3128, allocations: 60.83 kB / 417.1 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.3129, allocations: 8 kB / 417.1 MB, free: 20.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.3129, allocations: 34.5 kB / 417.2 MB, free: 20.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.011e-06/0.3129, allocations: 0 / 417.2 MB, free: 20.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004519/0.3134, allocations: 157.7 kB / 417.3 MB, free: 20.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.3134, allocations: 102.8 kB / 417.4 MB, free: 20.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.3135, allocations: 164.7 kB / 417.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.3136, allocations: 25.7 kB / 417.6 MB, free: 20.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.3136, allocations: 123.7 kB / 417.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.3137, allocations: 27.64 kB / 417.8 MB, free: 19.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-06/0.3137, allocations: 0 / 417.8 MB, free: 19.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.3138, allocations: 326.8 kB / 418.1 MB, free: 19.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.3139, allocations: 35.98 kB / 418.1 MB, free: 19.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.314, allocations: 88.25 kB / 418.2 MB, free: 19.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.3143, allocations: 102.5 kB / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3143, allocations: 0 / 418.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002784/0.3146, allocations: 157.4 kB / 418.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3146, allocations: 7.938 kB / 418.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3146, allocations: 0 / 418.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3146, allocations: 3.938 kB / 418.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.3151, allocations: 87.91 kB / 418.5 MB, free: 19.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.3163, allocations: 1.394 MB / 419.9 MB, free: 17.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.3164, allocations: 28.11 kB / 420 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.3165, allocations: 4 kB / 420 MB, free: 17.47 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 0.0001269/0.3166, allocations: 130.3 kB / 420.1 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.483e-05/0.3166, allocations: 15.81 kB / 420.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004323/0.3171, allocations: 155.2 kB / 420.3 MB, free: 17.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3171, allocations: 4 kB / 420.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.32e-07/0.3171, allocations: 0 / 420.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3171, allocations: 4.031 kB / 420.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006694/0.3178, allocations: 476 kB / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3178, allocations: 3.938 kB / 420.7 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.3179, allocations: 24.02 kB / 420.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002846/0.3182, allocations: 40.77 kB / 420.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3182, allocations: 4 kB / 420.8 MB, free: 16.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007318/0.319, allocations: 1.3 MB / 422.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.319, allocations: 0 / 422.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.3195, allocations: 301.7 kB / 422.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.46e-05/0.3195, allocations: 92.94 kB / 422.5 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.3195, allocations: 4 kB / 422.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.3197, allocations: 15.98 kB / 422.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.364e-05/0.3198, allocations: 4 kB / 422.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.3198, allocations: 7.984 kB / 422.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.371e-05/0.3198, allocations: 119.2 kB / 422.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3199, allocations: 0 / 422.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002741/0.3201, allocations: 39.94 kB / 422.7 MB, free: 14.5 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.0001582/0.3203, allocations: 112.2 kB / 422.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006506/0.321, allocations: 148 kB / 422.9 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.321, allocations: 0 / 422.9 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.3213, allocations: 170.6 kB / 423.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.3215, allocations: 12 kB / 423.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3229, allocations: 0.6275 MB / 423.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3231, allocations: 0.7082 MB / 424.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.922e-05/0.3232, allocations: 12.55 kB / 424.5 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.3232, allocations: 19.44 kB / 424.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.3232, allocations: 3.938 kB / 424.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Templates: time 0.003811/0.3271, allocations: 1.501 MB / 426 MB, free: 11.14 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches