Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 210.8 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 51.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2568, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005157/0.262, allocations: 3.201 MB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.2648, allocations: 1.59 MB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.265, allocations: 8 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003175/0.2682, allocations: 2.671 MB / 438.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.2688, allocations: 226.5 kB / 438.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007463/0.2695, allocations: 330.6 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001866/0.2714, allocations: 1.821 MB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.2716, allocations: 102 kB / 441 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.272, allocations: 325 kB / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004472/0.2725, allocations: 366.7 kB / 441.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-05/0.2726, allocations: 44 kB / 441.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002225/0.2728, allocations: 87.98 kB / 441.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006831/0.2735, allocations: 0.853 MB / 442.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005969/0.2741, allocations: 0.6627 MB / 443.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002544/0.2766, allocations: 2.68 MB / 446 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2766, allocations: 0 / 446 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2766, allocations: 4 kB / 446 MB, free: 7.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.2767, allocations: 4 kB / 446 MB, free: 7.637 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.004201/0.2809, allocations: 2.836 MB / 448.9 MB, free: 4.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2809, allocations: 8.031 kB / 448.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.068e-05/0.281, allocations: 74.72 kB / 448.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000452/0.2814, allocations: 310.9 kB / 449.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.2842, allocations: 1.798 MB / 451 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.2844, allocations: 114.4 kB / 451.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.2845, allocations: 47.98 kB / 451.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.2853, allocations: 442.4 kB / 451.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.2853, allocations: 0 / 451.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.2853, allocations: 16 kB / 451.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.2853, allocations: 8 kB / 451.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007193/0.2861, allocations: 331.7 kB / 452 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004183/0.2902, allocations: 2.635 MB / 454.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.2909, allocations: 301 kB / 454.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003281/0.2912, allocations: 157.6 kB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.2913, allocations: 7.984 kB / 455.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.2913, allocations: 46.44 kB / 455.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.713e-06/0.2913, allocations: 0 / 455.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.00504/0.2963, allocations: 2.399 MB / 457.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.2964, allocations: 89.55 kB / 457.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006669/0.3031, allocations: 5.459 MB / 463.1 MB, free: 6.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.3031, allocations: 33.7 kB / 463.1 MB, free: 6.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/0.3044, allocations: 1.18 MB / 464.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3045, allocations: 178.5 kB / 464.5 MB, free: 4.863 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.3047, allocations: 90.19 kB / 464.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3049, allocations: 334 kB / 464.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.3052, allocations: 132.9 kB / 465 MB, free: 4.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004776/0.3057, allocations: 229 kB / 465.2 MB, free: 4.055 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007699/0.3065, allocations: 384.2 kB / 465.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3065, allocations: 0 / 465.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001396/0.3079, allocations: 0.6975 MB / 466.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3079, allocations: 8 kB / 466.3 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3079, allocations: 4 kB / 466.3 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.3079, allocations: 8 kB / 466.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.3084, allocations: 119.9 kB / 466.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.3085, allocations: 7.938 kB / 466.4 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.3089, allocations: 19.95 kB / 466.5 MB, free: 2.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.309, allocations: 16 kB / 466.5 MB, free: 2.77 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.00128/0.3103, allocations: 0.923 MB / 467.4 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/0.3106, allocations: 294.1 kB / 467.7 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.3122, allocations: 0.7903 MB / 468.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/0.3122, allocations: 8 kB / 468.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3122, allocations: 0 / 468.5 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.3122, allocations: 3.984 kB / 468.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.3139, allocations: 1.246 MB / 469.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3139, allocations: 4 kB / 469.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004585/0.3144, allocations: 95.88 kB / 469.8 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004065/0.3148, allocations: 92.8 kB / 469.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.3148, allocations: 12 kB / 469.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006635/0.3155, allocations: 0.6382 MB / 470.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3155, allocations: 4.062 kB / 470.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.3176, allocations: 1.083 MB / 471.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.319, allocations: 433.9 kB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.3193, allocations: 12 kB / 472.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000501/0.3198, allocations: 23.98 kB / 472.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/0.3199, allocations: 32.33 kB / 472.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.3199, allocations: 12.11 kB / 472.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.006171/0.3261, allocations: 3.994 MB / 476.2 MB, free: 8.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3261, allocations: 0 / 476.2 MB, free: 8.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001194/0.3273, allocations: 204 kB / 476.4 MB, free: 8.777 MB / 382.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.003979/0.3313, allocations: 1.974 MB / 478.3 MB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009028/0.3322, allocations: 360.9 kB / 478.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3322, allocations: 0.5 kB / 478.7 MB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000469/0.3326, allocations: 202.4 kB / 478.9 MB, free: 6.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.334, allocations: 196.8 kB / 479.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03874/0.3727, allocations: 19.43 MB / 498.5 MB, free: 2.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/0.3743, allocations: 1.246 MB / 499.7 MB, free: 1.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006554/0.375, allocations: 279.8 kB / 0.4883 GB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/0.3762, allocations: 0.9367 MB / 0.4892 GB, free: 120 kB / 398.1 MB Notification: Performance of SimCode: time 1.833e-06/0.3762, allocations: 0 / 0.4892 GB, free: 120 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08798/0.4642, allocations: 40.02 MB / 0.5283 GB, free: 8.266 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.21, allocations: 18.78 kB / 0.5283 GB, free: 8.25 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 19.340363093011547]