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.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009388/0.0009388, allocations: 183.2 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.318/1.318, allocations: 225.7 MB / 243.2 MB, free: 8.488 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.000721/0.000721, allocations: 92.52 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002366/0.0002366, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1812, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.002834/0.1841, allocations: 2.925 MB / 407.5 MB, free: 28.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.1863, allocations: 1.459 MB / 409 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003179/0.1866, allocations: 7.938 kB / 409 MB, free: 26.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001896/0.1886, allocations: 1.848 MB / 410.8 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004609/0.189, allocations: 147 kB / 411 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.1898, allocations: 283.5 kB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001531/0.1913, allocations: 1.694 MB / 412.9 MB, free: 22.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1915, allocations: 119.9 kB / 413 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.1918, allocations: 277 kB / 413.3 MB, free: 22.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.1921, allocations: 294.8 kB / 413.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.44e-05/0.1922, allocations: 24 kB / 413.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.1923, allocations: 60 kB / 413.7 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.1927, allocations: 0.8218 MB / 414.5 MB, free: 21.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004555/0.1931, allocations: 0.9129 MB / 415.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.1944, allocations: 2.496 MB / 417.9 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1944, allocations: 3.938 kB / 417.9 MB, free: 17.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1944, allocations: 0 / 417.9 MB, free: 17.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.1944, allocations: 4 kB / 417.9 MB, free: 17.91 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002319/0.1968, allocations: 2.404 MB / 420.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1968, allocations: 12.03 kB / 420.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.197, allocations: 281.3 kB / 420.6 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001604/0.1986, allocations: 1.816 MB / 422.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/0.1987, allocations: 63.25 kB / 422.5 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1988, allocations: 51.86 kB / 422.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.1994, allocations: 394.9 kB / 422.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1994, allocations: 8 kB / 422.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.1995, allocations: 12 kB / 423 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1995, allocations: 8 kB / 423 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005648/0.2, allocations: 339.7 kB / 423.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.2028, allocations: 2.907 MB / 426.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.2033, allocations: 313 kB / 426.5 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.2036, allocations: 165.6 kB / 426.7 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.2036, allocations: 7.984 kB / 426.7 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.455e-05/0.2036, allocations: 42.5 kB / 426.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.804e-06/0.2036, allocations: 0 / 426.7 MB, free: 8.852 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003583/0.2072, allocations: 2.419 MB / 429.1 MB, free: 6.363 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.2073, allocations: 85.55 kB / 429.2 MB, free: 6.262 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004082/0.2114, allocations: 5.4 MB / 434.6 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.2114, allocations: 29.7 kB / 434.6 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008042/0.2122, allocations: 1.207 MB / 435.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.2123, allocations: 169.5 kB / 436 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/0.2123, allocations: 8 kB / 436 MB, free: 15.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.641e-05/0.2124, allocations: 334 kB / 436.4 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002963/0.2128, allocations: 137.1 kB / 436.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003276/0.2131, allocations: 217.7 kB / 436.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006302/0.2137, allocations: 380.3 kB / 437.1 MB, free: 14.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2137, allocations: 3.938 kB / 437.1 MB, free: 14.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000963/0.2147, allocations: 0.684 MB / 437.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.2147, allocations: 4 kB / 437.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2148, allocations: 4 kB / 437.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2148, allocations: 4 kB / 437.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004788/0.2153, allocations: 119.8 kB / 437.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2153, allocations: 8.234 kB / 437.9 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.2157, allocations: 27.84 kB / 437.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.2157, allocations: 23.94 kB / 437.9 MB, free: 13.44 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008485/0.2165, allocations: 0.9269 MB / 438.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.2168, allocations: 268.5 kB / 439.1 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.2181, allocations: 0.798 MB / 439.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2181, allocations: 4 kB / 439.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2181, allocations: 0 / 439.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2181, allocations: 4 kB / 439.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.2195, allocations: 1.469 MB / 441.4 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2195, allocations: 3.938 kB / 441.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/0.22, allocations: 99.88 kB / 441.5 MB, free: 9.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003034/0.2203, allocations: 92.64 kB / 441.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.2203, allocations: 12 kB / 441.6 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000465/0.2208, allocations: 0.6344 MB / 442.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2208, allocations: 7.938 kB / 442.3 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.2223, allocations: 1.077 MB / 443.3 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006083/0.2229, allocations: 0.4897 MB / 443.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.223, allocations: 12 kB / 443.8 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004275/0.2235, allocations: 19.98 kB / 443.9 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.2236, allocations: 28.39 kB / 443.9 MB, free: 7.359 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.2236, allocations: 20 kB / 443.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003851/0.2274, allocations: 3.942 MB / 447.8 MB, free: 3.406 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2275, allocations: 0 / 447.8 MB, free: 3.406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005501/0.228, allocations: 208 kB / 448 MB, free: 3.203 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008398/0.2289, allocations: 475.9 kB / 448.5 MB, free: 2.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007133/0.2296, allocations: 388.8 kB / 448.9 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2296, allocations: 0 / 448.9 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004107/0.23, allocations: 210.9 kB / 449.1 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.231, allocations: 194 kB / 449.3 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.2379, allocations: 6.156 MB / 455.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001496/0.2394, allocations: 1.814 MB / 457.3 MB, free: 10.04 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000568/0.24, allocations: 279.5 kB / 457.5 MB, free: 9.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.2402, allocations: 91.42 kB / 457.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2402, allocations: 0 / 457.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of Templates: time 0.02466/0.2649, allocations: 14.19 MB / 471.8 MB, free: 11.48 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches