Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001362/0.001362, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001521/0.001521, allocations: 211.7 kB / 23.73 MB, free: 4.523 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 43.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.265, allocations: 53.38 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004508/0.2695, allocations: 2.679 MB / 433.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.2716, allocations: 1.207 MB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/0.2718, allocations: 4 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002721/0.2721, allocations: 57.14 kB / 435 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000581/0.2727, allocations: 238.7 kB / 435.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.273, allocations: 127.8 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005054/0.2735, allocations: 463 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.2736, allocations: 64.78 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.2739, allocations: 207.4 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.2742, allocations: 219.2 kB / 436.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.741e-05/0.2743, allocations: 40 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002935/0.2746, allocations: 171.9 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-05/0.2747, allocations: 83.73 kB / 436.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.2748, allocations: 163.3 kB / 436.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006071/0.2754, allocations: 0.5137 MB / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2754, allocations: 0 / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2754, allocations: 3.938 kB / 437.3 MB, free: 444 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2754, allocations: 4 kB / 437.3 MB, free: 440 kB / 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.0016/0.277, allocations: 0.648 MB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.2771, allocations: 8.031 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.46e-05/0.2772, allocations: 58.73 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.2773, allocations: 44.73 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005139/0.2779, allocations: 283.2 kB / 438.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.278, allocations: 102.3 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.2781, allocations: 48.23 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.2787, allocations: 347.3 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.2787, allocations: 0 / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.2788, allocations: 8 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2788, allocations: 8 kB / 438.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006722/0.2795, allocations: 301.7 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.2813, allocations: 1.042 MB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.2819, allocations: 277 kB / 440.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.2822, allocations: 161.6 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.2823, allocations: 4 kB / 440.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.2823, allocations: 34.56 kB / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.2823, allocations: 0 / 440.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.008867/0.2912, allocations: 2.273 MB / 442.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.2912, allocations: 85.05 kB / 443 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.2916, allocations: 301 kB / 443.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.2917, allocations: 33.7 kB / 443.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.2918, allocations: 168.7 kB / 443.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.292, allocations: 154.6 kB / 443.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.2921, allocations: 86.09 kB / 443.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2923, allocations: 338.8 kB / 444 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.2927, allocations: 164.8 kB / 444.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.2931, allocations: 226.7 kB / 444.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.294, allocations: 403.8 kB / 444.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.294, allocations: 4 kB / 444.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001049/0.295, allocations: 480.7 kB / 445.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.2951, allocations: 8 kB / 445.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.2951, allocations: 8.172 kB / 445.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.2951, allocations: 8 kB / 445.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.2957, allocations: 119.8 kB / 445.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.475e-06/0.2957, allocations: 0 / 445.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003664/0.2961, allocations: 31.98 kB / 445.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.876e-05/0.2961, allocations: 15.98 kB / 445.5 MB, free: 7.898 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.0001987/0.2963, allocations: 161.7 kB / 445.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.2964, allocations: 35.75 kB / 445.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.2983, allocations: 0.6486 MB / 446.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.2983, allocations: 4 kB / 446.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.2983, allocations: 4 kB / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2983, allocations: 0 / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.3014, allocations: 1.181 MB / 447.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3014, allocations: 0 / 447.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.3019, allocations: 91.88 kB / 447.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.3034, allocations: 264.6 kB / 447.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.3034, allocations: 11.98 kB / 447.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004061/0.3075, allocations: 2.301 MB / 450.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3075, allocations: 0 / 450.2 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.3098, allocations: 1.015 MB / 451.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.3099, allocations: 63.8 kB / 451.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/0.31, allocations: 12 kB / 451.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.3104, allocations: 28.06 kB / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.3105, allocations: 44.34 kB / 451.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.3106, allocations: 16 kB / 451.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.3108, allocations: 216.5 kB / 451.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3108, allocations: 192 / 451.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.3114, allocations: 111.9 kB / 451.7 MB, free: 1.496 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.002723/0.3141, allocations: 1.594 MB / 453.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000972/0.3151, allocations: 410 kB / 453.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3151, allocations: 0 / 453.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006934/0.3158, allocations: 373.3 kB / 454 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.3162, allocations: 36.38 kB / 454.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/0.3223, allocations: 3.883 MB / 457.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3226, allocations: 187.1 kB / 458.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002392/0.3228, allocations: 38.95 kB / 458.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.323, allocations: 115.4 kB / 458.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.323, allocations: 0 / 458.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.3664, allocations: 10.23 MB / 468.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.95, allocations: 18.06 kB / 468.5 MB, free: 0.6172 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.585722540999996]