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.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 183.7 kB / 16.71 MB, free: 4.969 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.283/1.283, allocations: 225.7 MB / 243.2 MB, free: 10.21 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.0007342/0.0007343, allocations: 91.47 kB / 294.4 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.000226, allocations: 4 kB / 354.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1828, allocations: 50.42 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.002866/0.1857, allocations: 3.788 MB / 408.4 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1874, allocations: 1.623 MB / 410 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.1876, allocations: 4 kB / 410 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.1879, allocations: 103.2 kB / 410.1 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005304/0.1884, allocations: 307.7 kB / 410.4 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.1887, allocations: 199.8 kB / 410.6 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.1892, allocations: 0.9235 MB / 411.5 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.1894, allocations: 210.3 kB / 411.7 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.1897, allocations: 310.7 kB / 412 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.19, allocations: 382.2 kB / 412.4 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.19, allocations: 40 kB / 412.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000243/0.1903, allocations: 163.9 kB / 412.6 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.116e-05/0.1904, allocations: 135.4 kB / 412.7 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002176/0.1906, allocations: 387.7 kB / 413.1 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005875/0.1912, allocations: 1.082 MB / 414.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1912, allocations: 0 / 414.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1912, allocations: 0 / 414.2 MB, free: 21.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1912, allocations: 3.938 kB / 414.2 MB, free: 21.68 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001693/0.1929, allocations: 0.9781 MB / 415.2 MB, free: 20.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.193, allocations: 8.031 kB / 415.2 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.1931, allocations: 80 kB / 415.3 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005014/0.1936, allocations: 0.5028 MB / 415.8 MB, free: 20.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-05/0.1936, allocations: 83.5 kB / 415.8 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.1938, allocations: 64.5 kB / 415.9 MB, free: 19.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00086/0.1947, allocations: 0.6097 MB / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.1947, allocations: 0 / 416.5 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.792e-05/0.1948, allocations: 24 kB / 416.5 MB, free: 19.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1948, allocations: 12 kB / 416.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009052/0.1957, allocations: 0.536 MB / 417.1 MB, free: 18.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.1982, allocations: 2.33 MB / 419.4 MB, free: 16.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007939/0.199, allocations: 489.2 kB / 419.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.1995, allocations: 264.4 kB / 420.2 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.1995, allocations: 8.219 kB / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.1995, allocations: 46.5 kB / 420.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.383e-06/0.1995, allocations: 0 / 420.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01084/0.2104, allocations: 3.689 MB / 423.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.2104, allocations: 85.67 kB / 424 MB, free: 11.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004839/0.2109, allocations: 0.5369 MB / 424.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.211, allocations: 37.7 kB / 424.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.2111, allocations: 312.3 kB / 424.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.456e-05/0.2112, allocations: 209 kB / 425.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.2112, allocations: 15.98 kB / 425.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.396e-05/0.2113, allocations: 362.8 kB / 425.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.2118, allocations: 261.2 kB / 425.7 MB, free: 9.789 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.2123, allocations: 348.4 kB / 426 MB, free: 9.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009306/0.2132, allocations: 0.6176 MB / 426.6 MB, free: 8.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.2132, allocations: 4 kB / 426.6 MB, free: 8.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001182/0.2144, allocations: 0.7607 MB / 427.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2144, allocations: 11.94 kB / 427.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2145, allocations: 0 / 427.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001266/0.2146, allocations: 36.83 kB / 427.5 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007066/0.2153, allocations: 167.8 kB / 427.6 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006299/0.2159, allocations: 1.335 MB / 429 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000497/0.2165, allocations: 39.98 kB / 429 MB, free: 6.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.2165, allocations: 23.98 kB / 429 MB, free: 6.238 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.2167, allocations: 211 kB / 429.2 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.502e-05/0.2168, allocations: 59.34 kB / 429.3 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.2183, allocations: 0.8685 MB / 430.1 MB, free: 5.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.2183, allocations: 8 kB / 430.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2183, allocations: 3.938 kB / 430.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.2183, allocations: 3.984 kB / 430.2 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.2212, allocations: 1.894 MB / 432.1 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2213, allocations: 0 / 432.1 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.2217, allocations: 111.9 kB / 432.2 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/0.2239, allocations: 0.5002 MB / 432.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.2239, allocations: 15.98 kB / 432.7 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/0.2278, allocations: 2.951 MB / 435.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2279, allocations: 0 / 435.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.2306, allocations: 1.405 MB / 437 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.2308, allocations: 220.5 kB / 437.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.177e-05/0.2309, allocations: 15.94 kB / 437.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005467/0.2315, allocations: 43.97 kB / 437.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.2316, allocations: 56.48 kB / 437.4 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.2317, allocations: 23.92 kB / 437.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004428/0.2321, allocations: 382.9 kB / 437.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2321, allocations: 0 / 437.8 MB, free: 13.24 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006295/0.2327, allocations: 188 kB / 437.9 MB, free: 13.05 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002421/0.233, allocations: 159.1 kB / 438.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2344, allocations: 0.7365 MB / 438.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2345, allocations: 4 kB / 438.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008481/0.2353, allocations: 0.5256 MB / 439.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000676/0.236, allocations: 89.88 kB / 439.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.2386, allocations: 1.871 MB / 441.3 MB, free: 9.605 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.239, allocations: 0.9006 MB / 442.2 MB, free: 8.676 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003262/0.2393, allocations: 68.81 kB / 442.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.2395, allocations: 55.41 kB / 442.4 MB, free: 8.551 MB / 314.7 MB Notification: Performance of SimCode: time 3e-07/0.2395, allocations: 4 kB / 442.4 MB, free: 8.547 MB / 314.7 MB Notification: Performance of Templates: time 0.01428/0.2538, allocations: 9.55 MB / 451.9 MB, free: 15.05 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches