Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001384/0.001384, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001418/0.001418, allocations: 187.5 kB / 23.71 MB, free: 4.434 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.473/1.473, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 47.92 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2617, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004283/0.266, allocations: 2.673 MB / 425.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.268, allocations: 1.133 MB / 426.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.2682, allocations: 4 kB / 426.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002788/0.2685, allocations: 77.05 kB / 426.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005707/0.269, allocations: 218.8 kB / 426.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.2693, allocations: 127.8 kB / 426.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005054/0.2699, allocations: 467 kB / 427.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.27, allocations: 56.84 kB / 427.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.2703, allocations: 191.4 kB / 427.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003063/0.2706, allocations: 191.1 kB / 427.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.2e-05/0.2707, allocations: 44 kB / 427.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002963/0.271, allocations: 151.9 kB / 427.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.495e-05/0.2711, allocations: 95.7 kB / 428 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.2712, allocations: 151.4 kB / 428.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006146/0.2718, allocations: 0.5214 MB / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2718, allocations: 0 / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2718, allocations: 0 / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2719, allocations: 0 / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001619/0.2735, allocations: 0.6336 MB / 429.3 MB, free: 7.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2735, allocations: 12.03 kB / 429.3 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.686e-05/0.2736, allocations: 66.72 kB / 429.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.2737, allocations: 36.7 kB / 429.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005544/0.2742, allocations: 271.3 kB / 429.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.2744, allocations: 106.3 kB / 429.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.2745, allocations: 36.3 kB / 429.8 MB, free: 7.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00065/0.2752, allocations: 347.2 kB / 430.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.2752, allocations: 0 / 430.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.2752, allocations: 16 kB / 430.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2752, allocations: 8 kB / 430.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006772/0.2759, allocations: 293.8 kB / 430.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.2777, allocations: 1.042 MB / 431.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.2784, allocations: 293 kB / 431.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003329/0.2787, allocations: 155.8 kB / 431.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.2787, allocations: 7.938 kB / 431.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.2788, allocations: 34.56 kB / 432 MB, free: 4.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.2788, allocations: 4 kB / 432 MB, free: 4.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009349/0.2881, allocations: 2.269 MB / 434.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.2882, allocations: 81.11 kB / 434.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.2885, allocations: 293.1 kB / 434.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.2886, allocations: 33.7 kB / 434.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.2887, allocations: 164.6 kB / 434.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.2888, allocations: 158.7 kB / 434.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.289, allocations: 78.11 kB / 435 MB, free: 1.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.2892, allocations: 342.8 kB / 435.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.2896, allocations: 164.8 kB / 435.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.29, allocations: 230.6 kB / 435.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008733/0.2909, allocations: 403.6 kB / 436.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2909, allocations: 0 / 436.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001096/0.292, allocations: 492.8 kB / 436.6 MB, free: 16 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.292, allocations: 8 kB / 436.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.292, allocations: 0 / 436.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.2921, allocations: 7.938 kB / 436.6 MB, free: 0 / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006291/0.2927, allocations: 119.9 kB / 436.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2927, allocations: 4 kB / 436.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004169/0.2931, allocations: 36 kB / 436.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.2932, allocations: 16 kB / 436.8 MB, free: 15.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0002062/0.2934, allocations: 161.6 kB / 437 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-05/0.2935, allocations: 35.77 kB / 437 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00191/0.2954, allocations: 0.6447 MB / 437.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.2954, allocations: 4 kB / 437.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.2954, allocations: 4 kB / 437.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2954, allocations: 0 / 437.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003235/0.2986, allocations: 1.173 MB / 438.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2986, allocations: 0 / 438.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004547/0.2991, allocations: 91.88 kB / 438.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001569/0.3007, allocations: 268.5 kB / 439.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.169e-05/0.3007, allocations: 11.98 kB / 439.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00422/0.3049, allocations: 2.305 MB / 441.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3049, allocations: 0 / 441.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/0.3073, allocations: 1.008 MB / 442.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.3075, allocations: 67.8 kB / 442.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.89e-05/0.3075, allocations: 8 kB / 442.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/0.308, allocations: 35.91 kB / 442.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3081, allocations: 40.36 kB / 442.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.3081, allocations: 12 kB / 442.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.3084, allocations: 212.5 kB / 442.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3084, allocations: 0 / 442.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005811/0.309, allocations: 119.9 kB / 443 MB, free: 9.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002832/0.3118, allocations: 1.586 MB / 444.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.3128, allocations: 410.4 kB / 445 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3128, allocations: 4.062 kB / 445 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007371/0.3135, allocations: 376.8 kB / 445.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.314, allocations: 40.56 kB / 445.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005933/0.32, allocations: 3.862 MB / 449.2 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.3202, allocations: 187.1 kB / 449.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002162/0.3204, allocations: 42.95 kB / 449.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002441/0.3206, allocations: 119.4 kB / 449.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3206, allocations: 0 / 449.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04284/0.3635, allocations: 10.09 MB / 459.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.17, allocations: 6.734 kB / 459.7 MB, free: 8.723 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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: 15.861852371133864]