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.001892/0.001892, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001919/0.001919, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.564/1.564, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001693/0.001693, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1193, allocations: 53.34 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.006145/0.1254, allocations: 3.456 MB / 429.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2472/0.3727, allocations: 1.66 MB / 431.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006022/0.3733, allocations: 5.656 kB / 431.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003656/0.3769, allocations: 2.662 MB / 434.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009009/0.3778, allocations: 227.8 kB / 434.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.3789, allocations: 314.1 kB / 434.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002901/0.3818, allocations: 1.822 MB / 436.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.382, allocations: 99.97 kB / 436.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005333/0.3825, allocations: 329.5 kB / 436.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005727/0.3831, allocations: 354.1 kB / 437.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.895e-05/0.3832, allocations: 45.69 kB / 437.3 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002477/0.3834, allocations: 92.45 kB / 437.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008331/0.3843, allocations: 0.8497 MB / 438.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006341/0.3849, allocations: 0.9383 MB / 439.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003476/0.3884, allocations: 2.649 MB / 441.8 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.3884, allocations: 5.531 kB / 441.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3884, allocations: 0 / 441.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.583e-05/0.3885, allocations: 4 kB / 441.8 MB, free: 6.203 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.006125/0.3946, allocations: 2.919 MB / 444.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.3946, allocations: 10.22 kB / 444.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.014e-05/0.3947, allocations: 71.59 kB / 444.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007196/0.3955, allocations: 307.5 kB / 445.1 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.3991, allocations: 1.862 MB / 447 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.403e-05/0.3992, allocations: 56.92 kB / 447 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/0.3994, allocations: 49.25 kB / 447.1 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007851/0.4002, allocations: 402.1 kB / 447.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.4002, allocations: 0.9688 kB / 447.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.4003, allocations: 15.47 kB / 447.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4003, allocations: 9.031 kB / 447.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007099/0.401, allocations: 324.7 kB / 447.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005551/0.4065, allocations: 2.912 MB / 450.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007666/0.4073, allocations: 302.1 kB / 451 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.4076, allocations: 160.5 kB / 451.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.4076, allocations: 6.922 kB / 451.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.4077, allocations: 38.34 kB / 451.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.295e-06/0.4077, allocations: 0 / 451.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005812/0.4135, allocations: 2.475 MB / 453.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.4136, allocations: 82.83 kB / 453.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/0.4238, allocations: 5.46 MB / 459.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.424, allocations: 35.73 kB / 459.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.4255, allocations: 1.185 MB / 460.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002459/0.4257, allocations: 173.5 kB / 460.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.4259, allocations: 88.45 kB / 460.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4261, allocations: 331 kB / 461 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/0.4265, allocations: 135.9 kB / 461.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.4269, allocations: 221.6 kB / 461.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008805/0.4278, allocations: 389.2 kB / 461.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4278, allocations: 0 / 461.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002162/0.43, allocations: 0.7032 MB / 462.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.43, allocations: 5.75 kB / 462.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.43, allocations: 2.094 kB / 462.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.367e-05/0.4301, allocations: 5.359 kB / 462.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006473/0.4307, allocations: 120.8 kB / 462.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.4307, allocations: 10.66 kB / 462.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008217/0.4315, allocations: 18.58 kB / 462.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.4316, allocations: 17.03 kB / 462.6 MB, free: 10.12 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.001981/0.4336, allocations: 0.9272 MB / 463.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.434, allocations: 285.3 kB / 463.8 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.4359, allocations: 0.791 MB / 464.6 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.4359, allocations: 5.234 kB / 464.6 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.4359, allocations: 1.625 kB / 464.6 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.4359, allocations: 3.984 kB / 464.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.4382, allocations: 1.485 MB / 466.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.4383, allocations: 4 kB / 466.1 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.4387, allocations: 99.81 kB / 466.2 MB, free: 7.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000393/0.4391, allocations: 91.78 kB / 466.3 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.4392, allocations: 12 kB / 466.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006515/0.4398, allocations: 0.6304 MB / 467 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4398, allocations: 4.062 kB / 467 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.442, allocations: 1.095 MB / 468.1 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000974/0.443, allocations: 0.503 MB / 468.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000402/0.4434, allocations: 8 kB / 468.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005151/0.4439, allocations: 19.98 kB / 468.6 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.444, allocations: 28.39 kB / 468.6 MB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.444, allocations: 18.67 kB / 468.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.008325/0.4524, allocations: 3.986 MB / 472.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4524, allocations: 0 / 472.6 MB, free: 1.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001821/0.4542, allocations: 204 kB / 472.8 MB, free: 1.105 MB / 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.00507/0.4593, allocations: 1.956 MB / 474.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.4603, allocations: 356.9 kB / 475.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4603, allocations: 0.5 kB / 475.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005323/0.4608, allocations: 210.3 kB / 475.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.4633, allocations: 180.8 kB / 475.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06701/0.5303, allocations: 19.43 MB / 494.9 MB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002959/0.5332, allocations: 1.821 MB / 496.7 MB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001168/0.5344, allocations: 275.2 kB / 497 MB, free: 8.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002107/0.5365, allocations: 0.9367 MB / 498 MB, free: 7.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5365, allocations: 0 / 498 MB, free: 7.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/0.6395, allocations: 39.01 MB / 0.5244 GB, free: 1.211 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.78/18.42, allocations: 0 / 0.5244 GB, free: 1.211 MB / 430.1 MB " [Timeout remaining time 641] (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: 21.491995074989973]