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.000823/0.000823, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008215/0.0008215, allocations: 170 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8954/0.8954, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 2.053e-06/2.053e-06, allocations: 0 / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.265e-05/2.471e-05, allocations: 4.812 kB / 324.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005542/0.005566, allocations: 3.21 MB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003208/0.008775, allocations: 1.62 MB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004812/0.009256, allocations: 11.94 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.01144, allocations: 2.674 MB / 332.1 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000573/0.01202, allocations: 234.3 kB / 332.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005924/0.01261, allocations: 318.6 kB / 332.6 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.014, allocations: 1.848 MB / 334.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.01417, allocations: 84.39 kB / 334.6 MB, free: 5.809 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.01456, allocations: 437.1 kB / 335 MB, free: 5.383 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.01482, allocations: 291.3 kB / 335.3 MB, free: 5.098 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.01487, allocations: 44 kB / 335.3 MB, free: 5.055 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.015, allocations: 95.86 kB / 335.4 MB, free: 4.961 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.0154, allocations: 0.8649 MB / 336.3 MB, free: 4.094 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.01567, allocations: 478.1 kB / 336.7 MB, free: 3.625 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.01712, allocations: 2.516 MB / 339.2 MB, free: 1.098 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.01712, allocations: 0 / 339.2 MB, free: 1.098 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01712, allocations: 0 / 339.2 MB, free: 1.098 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.816e-05/0.01716, allocations: 0 / 339.2 MB, free: 1.098 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.003136/0.0203, allocations: 2.808 MB / 342.1 MB, free: 14.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.02034, allocations: 12.02 kB / 342.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.586e-05/0.02043, allocations: 74.72 kB / 342.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004538/0.02088, allocations: 306.9 kB / 342.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.02309, allocations: 1.805 MB / 344.2 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.407e-05/0.02319, allocations: 110.6 kB / 344.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.02333, allocations: 52.42 kB / 344.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.02391, allocations: 446.4 kB / 344.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.02393, allocations: 0 / 344.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.02397, allocations: 20 kB / 344.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.02398, allocations: 8 kB / 344.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005227/0.0245, allocations: 323.7 kB / 345.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002888/0.02739, allocations: 2.632 MB / 347.8 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.02783, allocations: 306 kB / 348.1 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.02807, allocations: 161.5 kB / 348.3 MB, free: 7.812 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.0281, allocations: 12 kB / 348.3 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.02813, allocations: 34.56 kB / 348.3 MB, free: 7.758 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.02813, allocations: 0 / 348.3 MB, free: 7.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.003053/0.03118, allocations: 2.401 MB / 350.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.03122, allocations: 89.55 kB / 350.8 MB, free: 5.207 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/0.03557, allocations: 5.455 MB / 356.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.32e-05/0.03562, allocations: 33.7 kB / 356.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007261/0.03634, allocations: 1.184 MB / 357.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.03645, allocations: 178.5 kB / 357.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-05/0.03655, allocations: 82.19 kB / 357.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.144e-05/0.03664, allocations: 322 kB / 358 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.03685, allocations: 140.9 kB / 358.2 MB, free: 13.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.03708, allocations: 225.1 kB / 358.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.03752, allocations: 381.5 kB / 358.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.03752, allocations: 0 / 358.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007411/0.03826, allocations: 0.7025 MB / 359.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.03828, allocations: 4 kB / 359.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.03828, allocations: 4.25 kB / 359.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.0383, allocations: 8 kB / 359.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.03858, allocations: 119.8 kB / 359.6 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.03859, allocations: 4 kB / 359.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002386/0.03882, allocations: 31.88 kB / 359.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.03885, allocations: 16 kB / 359.7 MB, free: 12.26 MB / 330.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.0006891/0.03954, allocations: 0.9192 MB / 360.6 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.03973, allocations: 294 kB / 360.9 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009027/0.04063, allocations: 0.7958 MB / 361.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.04063, allocations: 4 kB / 361.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.04064, allocations: 4 kB / 361.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.04064, allocations: 0 / 361.7 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.04165, allocations: 1.246 MB / 362.9 MB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.04165, allocations: 0 / 362.9 MB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.0419, allocations: 91.88 kB / 363 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002396/0.04213, allocations: 96.78 kB / 363.1 MB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.04216, allocations: 19.92 kB / 363.1 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003792/0.04254, allocations: 0.6344 MB / 363.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.04254, allocations: 0 / 363.8 MB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.04359, allocations: 1.092 MB / 364.9 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000458/0.04405, allocations: 434 kB / 365.3 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.04415, allocations: 11.94 kB / 365.3 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.0444, allocations: 23.98 kB / 365.3 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.04446, allocations: 28.44 kB / 365.3 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.04447, allocations: 19.98 kB / 365.4 MB, free: 6.445 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002967/0.04744, allocations: 3.99 MB / 369.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04744, allocations: 0 / 369.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004394/0.04788, allocations: 203.9 kB / 369.5 MB, free: 2.266 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.001906/0.04979, allocations: 1.975 MB / 371.5 MB, free: 460 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.05031, allocations: 358.2 kB / 371.9 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.05031, allocations: 0 / 371.9 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.0506, allocations: 195.3 kB / 372.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000736/0.05133, allocations: 197.7 kB / 372.3 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02533/0.07667, allocations: 19.31 MB / 391.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008855/0.07755, allocations: 1.254 MB / 392.8 MB, free: 10.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003405/0.07789, allocations: 275.8 kB / 393.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000703/0.07859, allocations: 0.9416 MB / 394 MB, free: 9.711 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/0.0786, allocations: 0 / 394 MB, free: 9.711 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04872/0.1273, allocations: 40 MB / 434 MB, free: 1.891 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.31/9.437, allocations: 8 kB / 434 MB, free: 1.883 MB / 394.7 MB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/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: 11.424299387261271]