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.001715/0.001715, allocations: 112.4 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001985/0.001985, allocations: 187.6 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.557/1.557, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001562/0.001562, allocations: 43.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3011, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005346/0.3064, allocations: 3.451 MB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002794/0.3092, allocations: 1.473 MB / 427.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.3096, allocations: 7.938 kB / 427.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003407/0.313, allocations: 2.663 MB / 430.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007185/0.3137, allocations: 178.7 kB / 430.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009012/0.3146, allocations: 306.5 kB / 430.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002485/0.3171, allocations: 1.802 MB / 432.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.3173, allocations: 91.7 kB / 432.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/0.3178, allocations: 321 kB / 432.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000479/0.3183, allocations: 354.8 kB / 433.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.3184, allocations: 44 kB / 433.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.3186, allocations: 83.98 kB / 433.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006997/0.3193, allocations: 0.8491 MB / 434.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008227/0.3202, allocations: 0.9384 MB / 435.2 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00282/0.323, allocations: 2.634 MB / 437.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.323, allocations: 0 / 437.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.323, allocations: 0 / 437.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.41e-05/0.323, allocations: 0 / 437.8 MB, free: 15.39 MB / 350.1 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.004968/0.328, allocations: 2.82 MB / 440.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.3281, allocations: 19.97 kB / 440.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.3282, allocations: 74.72 kB / 440.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005287/0.3287, allocations: 295 kB / 441 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003046/0.3317, allocations: 1.79 MB / 442.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.3319, allocations: 114.4 kB / 442.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.3321, allocations: 47.98 kB / 442.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007695/0.3328, allocations: 395 kB / 443.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.3328, allocations: 3.984 kB / 443.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.077e-05/0.3329, allocations: 16 kB / 443.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3329, allocations: 8 kB / 443.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007224/0.3336, allocations: 327.8 kB / 443.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.3385, allocations: 2.857 MB / 446.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007093/0.3392, allocations: 305.4 kB / 446.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003462/0.3396, allocations: 165.1 kB / 447 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.3396, allocations: 4 kB / 447 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.3397, allocations: 50.34 kB / 447 MB, free: 5.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.3397, allocations: 0 / 447 MB, free: 5.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005453/0.3451, allocations: 2.368 MB / 449.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.3452, allocations: 85.55 kB / 449.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007328/0.3525, allocations: 5.431 MB / 454.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.3526, allocations: 37.7 kB / 455 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001231/0.3539, allocations: 1.211 MB / 456.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.3541, allocations: 182.5 kB / 456.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3542, allocations: 90.14 kB / 456.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3544, allocations: 326 kB / 456.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.3547, allocations: 144.8 kB / 456.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.3551, allocations: 225.1 kB / 457.1 MB, free: 11.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007414/0.3559, allocations: 384.2 kB / 457.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3559, allocations: 0 / 457.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001434/0.3573, allocations: 0.7011 MB / 458.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3573, allocations: 4 kB / 458.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3573, allocations: 4 kB / 458.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.3574, allocations: 7.938 kB / 458.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.3579, allocations: 119.8 kB / 458.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/0.3579, allocations: 7.984 kB / 458.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005372/0.3585, allocations: 20.25 kB / 458.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/0.3585, allocations: 16 kB / 458.4 MB, free: 10.4 MB / 366.1 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.001714/0.3602, allocations: 0.9191 MB / 459.3 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004737/0.3607, allocations: 290.1 kB / 459.6 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.3625, allocations: 0.7864 MB / 460.4 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3625, allocations: 4 kB / 460.4 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3625, allocations: 0 / 460.4 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3625, allocations: 4 kB / 460.4 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/0.3646, allocations: 1.444 MB / 461.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3646, allocations: 0 / 461.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.3651, allocations: 99.86 kB / 461.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003935/0.3655, allocations: 100.7 kB / 462 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.3655, allocations: 12 kB / 462 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006704/0.3662, allocations: 0.6305 MB / 462.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3662, allocations: 0 / 462.7 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.3681, allocations: 1.09 MB / 463.7 MB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/0.3692, allocations: 426.1 kB / 464.2 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.3693, allocations: 20.11 kB / 464.2 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/0.3698, allocations: 16 kB / 464.2 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.267e-05/0.3699, allocations: 32.38 kB / 464.2 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.3699, allocations: 15.98 kB / 464.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006015/0.3759, allocations: 3.97 MB / 468.2 MB, free: 464 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3759, allocations: 0 / 468.2 MB, free: 464 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00102/0.377, allocations: 211.9 kB / 468.4 MB, free: 252 kB / 366.1 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.003596/0.3806, allocations: 1.927 MB / 470.3 MB, free: 14.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008497/0.3814, allocations: 364.8 kB / 470.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.3814, allocations: 4 kB / 470.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004646/0.3819, allocations: 202.9 kB / 470.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.383, allocations: 194 kB / 471.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04049/0.4235, allocations: 19.36 MB / 490.4 MB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.4253, allocations: 1.814 MB / 492.3 MB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006777/0.426, allocations: 275.6 kB / 492.5 MB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/0.4273, allocations: 0.9327 MB / 493.5 MB, free: 7.102 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4273, allocations: 0 / 493.5 MB, free: 7.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/0.5431, allocations: 39.09 MB / 0.5201 GB, free: 172 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.29/18.83, allocations: 3.938 kB / 0.5201 GB, free: 168 kB / 430.1 MB " [Timeout remaining time 641] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/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: 21.866498416999093]