Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008265/0.0008265, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007669/0.0007669, allocations: 149.1 kB / 23.93 MB, free: 0.6367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8738/0.8738, allocations: 173.3 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077e-05/1.215e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00322/0.003233, allocations: 3.151 MB / 321.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.005032, allocations: 1.418 MB / 323 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.005282, allocations: 8 kB / 323 MB, free: 1.777 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.007332, allocations: 2.67 MB / 325.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000382/0.007714, allocations: 182.6 kB / 325.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.008293, allocations: 313.9 kB / 326.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.009704, allocations: 1.817 MB / 328 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.009882, allocations: 95.58 kB / 328.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004493/0.01033, allocations: 413.1 kB / 328.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.0106, allocations: 299.2 kB / 328.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.379e-05/0.01066, allocations: 44 kB / 328.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.01081, allocations: 87.92 kB / 328.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004567/0.01127, allocations: 0.8571 MB / 329.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003494/0.01162, allocations: 474.1 kB / 330.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001538/0.01315, allocations: 2.496 MB / 332.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.01316, allocations: 0 / 332.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01316, allocations: 0 / 332.7 MB, free: 8.051 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.506e-05/0.01321, allocations: 0 / 332.7 MB, free: 8.051 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.003196/0.01641, allocations: 2.793 MB / 335.5 MB, free: 5.207 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.01645, allocations: 8.031 kB / 335.5 MB, free: 5.199 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.091e-05/0.01652, allocations: 74.72 kB / 335.6 MB, free: 5.117 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/0.01683, allocations: 299 kB / 335.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/0.01852, allocations: 1.781 MB / 337.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.352e-05/0.01861, allocations: 122.6 kB / 337.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.01874, allocations: 48.45 kB / 337.8 MB, free: 2.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.01926, allocations: 442.4 kB / 338.3 MB, free: 2.359 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.01927, allocations: 0 / 338.3 MB, free: 2.359 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.0193, allocations: 16 kB / 338.3 MB, free: 2.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.01931, allocations: 8 kB / 338.3 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.01974, allocations: 331.7 kB / 338.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.02231, allocations: 2.632 MB / 341.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.02273, allocations: 297 kB / 341.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.02293, allocations: 161.5 kB / 341.7 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.02296, allocations: 4 kB / 341.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.02298, allocations: 42.56 kB / 341.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.442e-06/0.02298, allocations: 0 / 341.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002992/0.02598, allocations: 2.391 MB / 344.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.02602, allocations: 85.61 kB / 344.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003996/0.03001, allocations: 5.439 MB / 349.6 MB, free: 6.777 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.03004, allocations: 33.7 kB / 349.7 MB, free: 6.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007078/0.03075, allocations: 1.207 MB / 350.9 MB, free: 5.523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.711e-05/0.03083, allocations: 178.4 kB / 351.1 MB, free: 5.348 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.904e-05/0.03092, allocations: 86.17 kB / 351.1 MB, free: 5.258 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.031, allocations: 322 kB / 351.5 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.0312, allocations: 140.9 kB / 351.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.03141, allocations: 225.1 kB / 351.8 MB, free: 4.551 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004204/0.03183, allocations: 377.5 kB / 352.2 MB, free: 4.152 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.03183, allocations: 4 kB / 352.2 MB, free: 4.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006715/0.0325, allocations: 0.7064 MB / 352.9 MB, free: 3.434 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.03252, allocations: 8 kB / 352.9 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.03253, allocations: 0 / 352.9 MB, free: 3.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.03254, allocations: 8 kB / 352.9 MB, free: 3.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.03281, allocations: 124.1 kB / 353 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.03281, allocations: 4 kB / 353 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.03303, allocations: 23.92 kB / 353.1 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.03305, allocations: 16 kB / 353.1 MB, free: 3.254 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.0006568/0.0337, allocations: 0.9153 MB / 354 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.03389, allocations: 286 kB / 354.3 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008346/0.03472, allocations: 0.7957 MB / 355.1 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.03472, allocations: 8 kB / 355.1 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.03473, allocations: 0 / 355.1 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.03474, allocations: 7.922 kB / 355.1 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.0358, allocations: 1.242 MB / 356.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.03581, allocations: 0 / 356.3 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/0.03604, allocations: 95.88 kB / 356.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.03626, allocations: 92.75 kB / 356.5 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.03628, allocations: 11.94 kB / 356.5 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003529/0.03663, allocations: 0.6266 MB / 357.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.03663, allocations: 4.031 kB / 357.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009845/0.03762, allocations: 1.096 MB / 358.2 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004488/0.03807, allocations: 434 kB / 358.7 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.03817, allocations: 8 kB / 358.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.03841, allocations: 19.98 kB / 358.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.03847, allocations: 32.44 kB / 358.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.03848, allocations: 12 kB / 358.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002923/0.04141, allocations: 3.974 MB / 362.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04141, allocations: 0 / 362.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004043/0.04181, allocations: 211.9 kB / 362.9 MB, free: 9.301 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.001828/0.04364, allocations: 1.964 MB / 364.9 MB, free: 7.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.04412, allocations: 362.2 kB / 365.2 MB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.04412, allocations: 0 / 365.2 MB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.0444, allocations: 206.7 kB / 365.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000696/0.04509, allocations: 211.3 kB / 365.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02483/0.06992, allocations: 19.23 MB / 384.9 MB, free: 3.316 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008911/0.07081, allocations: 1.237 MB / 386.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003475/0.07116, allocations: 267.6 kB / 386.4 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007025/0.07186, allocations: 0.9376 MB / 387.3 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.07186, allocations: 4 kB / 387.3 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04774/0.1196, allocations: 39.79 MB / 427.1 MB, free: 9.246 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.549/9.669, allocations: 8.062 kB / 427.1 MB, free: 9.238 MB / 394.7 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.667133592069149]