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.001761/0.001761, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001725/0.001725, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.422/1.422, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.001633/0.001633, allocations: 43.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.283, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005123/0.2881, allocations: 3.152 MB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.2906, allocations: 1.401 MB / 427.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.2908, allocations: 11.94 kB / 427.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003318/0.2941, allocations: 2.663 MB / 429.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004579/0.2946, allocations: 166.8 kB / 430 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007438/0.2953, allocations: 325.2 kB / 430.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00204/0.2974, allocations: 1.798 MB / 432.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.2976, allocations: 91.69 kB / 432.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004988/0.2981, allocations: 317 kB / 432.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000456/0.2986, allocations: 322.8 kB / 432.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2987, allocations: 47.94 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.2989, allocations: 83.92 kB / 432.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007161/0.2996, allocations: 0.8492 MB / 433.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006208/0.3003, allocations: 0.6667 MB / 434.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002666/0.3029, allocations: 2.657 MB / 437.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.3029, allocations: 4 kB / 437.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3029, allocations: 0 / 437.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.303, allocations: 0 / 437.1 MB, free: 15.82 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.00453/0.3075, allocations: 2.824 MB / 439.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.3075, allocations: 8.031 kB / 439.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.391e-05/0.3076, allocations: 74.72 kB / 440 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003654/0.308, allocations: 295 kB / 440.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.3108, allocations: 1.786 MB / 442.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.3109, allocations: 122.4 kB / 442.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.3111, allocations: 43.98 kB / 442.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007664/0.3118, allocations: 450.3 kB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.3118, allocations: 3.953 kB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.3119, allocations: 16 kB / 442.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.3119, allocations: 8 kB / 442.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007141/0.3126, allocations: 323.7 kB / 443 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.3167, allocations: 2.639 MB / 445.7 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.3173, allocations: 293.7 kB / 446 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.3176, allocations: 162.2 kB / 446.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.3177, allocations: 4 kB / 446.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.3177, allocations: 50.36 kB / 446.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.983e-06/0.3177, allocations: 0 / 446.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.004796/0.3225, allocations: 2.376 MB / 448.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.3225, allocations: 93.42 kB / 448.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006497/0.329, allocations: 5.439 MB / 454.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/0.3291, allocations: 29.7 kB / 454.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.3304, allocations: 1.215 MB / 455.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.3305, allocations: 178.4 kB / 455.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.3307, allocations: 86.19 kB / 455.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3308, allocations: 326 kB / 455.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.3312, allocations: 136.9 kB / 456 MB, free: 12.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/0.3316, allocations: 221.1 kB / 456.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/0.3323, allocations: 388.2 kB / 456.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3323, allocations: 0 / 456.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001272/0.3336, allocations: 0.6972 MB / 457.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3336, allocations: 7.125 kB / 457.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3336, allocations: 7.984 kB / 457.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.3336, allocations: 4 kB / 457.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.3341, allocations: 119.8 kB / 457.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3342, allocations: 4 kB / 457.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000417/0.3346, allocations: 20.25 kB / 457.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.583e-05/0.3346, allocations: 19.98 kB / 457.5 MB, free: 11 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.00109/0.3357, allocations: 0.9191 MB / 458.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/0.336, allocations: 290.1 kB / 458.7 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.3375, allocations: 0.7941 MB / 459.5 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3375, allocations: 8 kB / 459.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3375, allocations: 0 / 459.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3375, allocations: 11.92 kB / 459.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.3391, allocations: 1.238 MB / 460.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3391, allocations: 0 / 460.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.3396, allocations: 95.88 kB / 460.8 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003473/0.3399, allocations: 96.78 kB / 460.9 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/0.3399, allocations: 11.98 kB / 461 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006159/0.3406, allocations: 0.6344 MB / 461.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3406, allocations: 0 / 461.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.3424, allocations: 1.086 MB / 462.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009513/0.3433, allocations: 430 kB / 463.1 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.3435, allocations: 12 kB / 463.1 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.344, allocations: 23.98 kB / 463.1 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.344, allocations: 28.38 kB / 463.2 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.3441, allocations: 15.98 kB / 463.2 MB, free: 5.207 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004975/0.3491, allocations: 3.974 MB / 467.1 MB, free: 1.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3491, allocations: 3.938 kB / 467.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007268/0.3498, allocations: 204 kB / 467.4 MB, free: 1.039 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.003659/0.3534, allocations: 1.959 MB / 469.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008531/0.3543, allocations: 365 kB / 469.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3543, allocations: 0 / 469.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.3548, allocations: 202.4 kB / 469.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.3559, allocations: 197 kB / 470.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03985/0.3958, allocations: 19.36 MB / 489.4 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.3973, allocations: 1.245 MB / 490.7 MB, free: 9.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005966/0.3979, allocations: 267.6 kB / 490.9 MB, free: 9.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.3991, allocations: 0.9366 MB / 491.9 MB, free: 8.461 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3991, allocations: 0 / 491.9 MB, free: 8.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08495/0.484, allocations: 39.65 MB / 0.5191 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/16.3, allocations: 7.375 kB / 0.5191 GB, free: 0.9453 MB / 430.1 MB " [Timeout remaining time 644] (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] "" Variables in the reference:time,core.B,core.Hstat,core.MagRel,winding1.i,winding2.i Variables in the result:time,core.B,core.Hstat,core.MagRel,winding1.i,winding2.i [Calling sys.exit(0), Time elapsed: 19.19935889309272]