Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 199.4 kB / 17.43 MB, free: 4.242 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000764/0.000764, allocations: 87.48 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 11.98 kB / 360.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1955, allocations: 51.4 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.002729/0.1982, allocations: 2.961 MB / 415 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001793/0.2001, allocations: 2.013 MB / 417 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.2002, allocations: 4 kB / 417 MB, free: 20.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.2019, allocations: 1.86 MB / 418.9 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.2022, allocations: 182.9 kB / 419.1 MB, free: 18.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.2028, allocations: 283.5 kB / 419.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.2039, allocations: 1.718 MB / 421.1 MB, free: 16.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001883/0.2041, allocations: 116.6 kB / 421.2 MB, free: 16.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002893/0.2044, allocations: 285 kB / 421.5 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.2046, allocations: 298.8 kB / 421.7 MB, free: 16.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.904e-05/0.2047, allocations: 20 kB / 421.8 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2049, allocations: 67.97 kB / 421.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000371/0.2053, allocations: 0.8257 MB / 422.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004365/0.2057, allocations: 0.9128 MB / 423.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.2069, allocations: 2.512 MB / 426.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2069, allocations: 4 kB / 426.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.207, allocations: 0 / 426.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.207, allocations: 0 / 426.1 MB, free: 11.7 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.002455/0.2094, allocations: 2.426 MB / 428.5 MB, free: 9.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2095, allocations: 8.031 kB / 428.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003181/0.2098, allocations: 297.3 kB / 428.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.2115, allocations: 1.824 MB / 430.6 MB, free: 7.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.2116, allocations: 55.27 kB / 430.7 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.2118, allocations: 63.86 kB / 430.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000601/0.2124, allocations: 398.9 kB / 431.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2124, allocations: 0 / 431.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.2124, allocations: 16 kB / 431.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.2124, allocations: 8 kB / 431.2 MB, free: 6.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005962/0.213, allocations: 327.7 kB / 431.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/0.2159, allocations: 2.915 MB / 434.4 MB, free: 3.145 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005147/0.2165, allocations: 328.8 kB / 434.7 MB, free: 2.805 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2167, allocations: 161.7 kB / 434.9 MB, free: 2.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.2168, allocations: 7.984 kB / 434.9 MB, free: 2.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.2168, allocations: 46.48 kB / 434.9 MB, free: 2.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/0.2168, allocations: 0 / 434.9 MB, free: 2.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003805/0.2206, allocations: 2.414 MB / 437.3 MB, free: 96 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.2207, allocations: 85.48 kB / 437.4 MB, free: 15.99 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005598/0.2263, allocations: 5.424 MB / 442.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.2263, allocations: 33.7 kB / 442.9 MB, free: 10.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.2275, allocations: 1.187 MB / 444.1 MB, free: 9.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.2276, allocations: 165.5 kB / 444.2 MB, free: 9.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/0.2277, allocations: 16 kB / 444.3 MB, free: 9.156 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2278, allocations: 322 kB / 444.6 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.2281, allocations: 141 kB / 444.7 MB, free: 8.695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.2285, allocations: 221.7 kB / 444.9 MB, free: 8.457 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006929/0.2292, allocations: 376.3 kB / 445.3 MB, free: 8.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2292, allocations: 11.88 kB / 445.3 MB, free: 8.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001073/0.2303, allocations: 0.6801 MB / 446 MB, free: 7.359 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.2303, allocations: 9.25 kB / 446 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.2303, allocations: 0 / 446 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2304, allocations: 4 kB / 446 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.2309, allocations: 123.8 kB / 446.1 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.2309, allocations: 4.25 kB / 446.1 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.2313, allocations: 27.89 kB / 446.1 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.2313, allocations: 16 kB / 446.2 MB, free: 7.18 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.0009092/0.2322, allocations: 0.9269 MB / 447.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/0.2325, allocations: 268.5 kB / 447.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.2338, allocations: 0.802 MB / 448.2 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2338, allocations: 7.938 kB / 448.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2338, allocations: 0 / 448.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.2338, allocations: 7.984 kB / 448.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001442/0.2353, allocations: 1.473 MB / 449.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2353, allocations: 7.938 kB / 449.6 MB, free: 3.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/0.2357, allocations: 99.88 kB / 449.7 MB, free: 3.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003302/0.2361, allocations: 88.8 kB / 449.8 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.2361, allocations: 12 kB / 449.8 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000486/0.2366, allocations: 0.6344 MB / 450.5 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2366, allocations: 0 / 450.5 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.2382, allocations: 1.097 MB / 451.6 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006381/0.2388, allocations: 497.6 kB / 452.1 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.239, allocations: 8 kB / 452.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.2394, allocations: 23.98 kB / 452.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.2395, allocations: 24.41 kB / 452.1 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.2395, allocations: 19.98 kB / 452.1 MB, free: 1.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004005/0.2435, allocations: 3.962 MB / 456.1 MB, free: 13.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2436, allocations: 0 / 456.1 MB, free: 13.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006033/0.2442, allocations: 200 kB / 456.3 MB, free: 12.9 MB / 330.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.0009484/0.2451, allocations: 475.6 kB / 456.8 MB, free: 12.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007437/0.2459, allocations: 392.8 kB / 457.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2459, allocations: 0 / 457.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004332/0.2463, allocations: 206.9 kB / 457.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.2474, allocations: 198 kB / 457.5 MB, free: 11.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006596/0.254, allocations: 6.171 MB / 463.7 MB, free: 5.562 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.2555, allocations: 1.818 MB / 465.5 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004944/0.256, allocations: 271.8 kB / 465.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.2563, allocations: 95.42 kB / 465.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2563, allocations: 0 / 465.9 MB, free: 3.348 MB / 330.7 MB Notification: Performance of Templates: time 0.02738/0.2837, allocations: 14.27 MB / 480.2 MB, free: 5.07 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches