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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 114.6 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 43.94 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2726, allocations: 49.45 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004902/0.2775, allocations: 2.826 MB / 403.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.2799, allocations: 1.23 MB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002447/0.2801, allocations: 4 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.2804, allocations: 67.41 kB / 404.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005506/0.281, allocations: 230.7 kB / 404.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.2813, allocations: 115.8 kB / 404.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004722/0.2818, allocations: 467 kB / 405.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.2819, allocations: 76.73 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.2822, allocations: 191.4 kB / 405.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003326/0.2825, allocations: 219.2 kB / 405.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.571e-05/0.2826, allocations: 40 kB / 405.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002996/0.2829, allocations: 155.9 kB / 405.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.603e-05/0.283, allocations: 99.64 kB / 405.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.2832, allocations: 179.2 kB / 406.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006466/0.2839, allocations: 0.5088 MB / 406.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2839, allocations: 4 kB / 406.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.2839, allocations: 0 / 406.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2839, allocations: 3.938 kB / 406.6 MB, free: 2.441 MB / 318.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.001588/0.2855, allocations: 0.7129 MB / 407.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.2856, allocations: 16.03 kB / 407.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.008e-05/0.2857, allocations: 58.73 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.287e-05/0.2857, allocations: 36.7 kB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005155/0.2863, allocations: 329.5 kB / 407.8 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.49e-05/0.2864, allocations: 50.81 kB / 407.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/0.2865, allocations: 40.31 kB / 407.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006842/0.2872, allocations: 320.5 kB / 408.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.2872, allocations: 0 / 408.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.2873, allocations: 11.94 kB / 408.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.2873, allocations: 11.98 kB / 408.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000678/0.288, allocations: 302 kB / 408.5 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.2898, allocations: 1.164 MB / 409.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.2904, allocations: 297 kB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003377/0.2908, allocations: 161.6 kB / 410.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.2908, allocations: 7.938 kB / 410.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.2908, allocations: 42.5 kB / 410.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.423e-06/0.2909, allocations: 0 / 410.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009147/0.3, allocations: 2.417 MB / 412.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.3001, allocations: 81.11 kB / 412.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.3004, allocations: 289 kB / 412.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.793e-05/0.3005, allocations: 33.7 kB / 412.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3006, allocations: 160.7 kB / 413.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.3007, allocations: 166.6 kB / 413.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.3009, allocations: 78.11 kB / 413.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3011, allocations: 342.8 kB / 413.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003921/0.3015, allocations: 160.8 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.3019, allocations: 234.6 kB / 414.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008404/0.3028, allocations: 403.6 kB / 414.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3028, allocations: 0 / 414.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001033/0.3038, allocations: 488.5 kB / 414.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3039, allocations: 10.33 kB / 414.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3039, allocations: 7.938 kB / 415 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3039, allocations: 4 kB / 415 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.3045, allocations: 112 kB / 415.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3045, allocations: 8 kB / 415.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.3049, allocations: 27.98 kB / 415.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.3049, allocations: 19.98 kB / 415.1 MB, free: 9.527 MB / 334.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.0001838/0.3051, allocations: 165.6 kB / 415.3 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.155e-05/0.3052, allocations: 31.81 kB / 415.3 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.3071, allocations: 0.6602 MB / 416 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3071, allocations: 4 kB / 416 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3071, allocations: 0 / 416 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3071, allocations: 0 / 416 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003087/0.3102, allocations: 1.28 MB / 417.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3102, allocations: 0 / 417.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.3107, allocations: 91.88 kB / 417.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.3122, allocations: 264.5 kB / 417.6 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-05/0.3123, allocations: 19.98 kB / 417.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.3164, allocations: 2.439 MB / 420.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3164, allocations: 0 / 420.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.3187, allocations: 1.015 MB / 421.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.3189, allocations: 145 kB / 421.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.491e-05/0.319, allocations: 11.98 kB / 421.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.3194, allocations: 31.97 kB / 421.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.3195, allocations: 40.33 kB / 421.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.491e-05/0.3196, allocations: 12 kB / 421.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002369/0.3198, allocations: 212.5 kB / 421.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.014e-06/0.3198, allocations: 0 / 421.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005475/0.3204, allocations: 123.9 kB / 421.6 MB, free: 2.738 MB / 334.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.00283/0.3232, allocations: 1.596 MB / 423.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.3242, allocations: 429.9 kB / 423.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3242, allocations: 4 kB / 423.7 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007192/0.325, allocations: 385.3 kB / 424 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.3255, allocations: 40.61 kB / 424.1 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0058/0.3313, allocations: 3.858 MB / 427.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3317, allocations: 0.7852 MB / 428.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.3319, allocations: 38.97 kB / 428.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.3321, allocations: 119.4 kB / 428.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3322, allocations: 0 / 428.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03781/0.37, allocations: 9.672 MB / 438.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.43, allocations: 8.469 kB / 438.6 MB, free: 1.836 MB / 350.1 MB (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) 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) Reference file matches