Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_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.001184/0.001184, allocations: 109.4 kB / 17.73 MB, free: 5.312 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.001175/0.001175, allocations: 192.2 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 59.91 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09364, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004634/0.09832, allocations: 2.762 MB / 377.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.1007, allocations: 1.278 MB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002792/0.101, allocations: 4 kB / 378.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.1014, allocations: 75.41 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007086/0.1021, allocations: 222.7 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.1024, allocations: 123.8 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006011/0.103, allocations: 459 kB / 379.6 MB, free: 140 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.1032, allocations: 84.58 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1704/0.2736, allocations: 182.6 kB / 379.8 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003921/0.2741, allocations: 219.9 kB / 380 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.565e-05/0.2742, allocations: 41.59 kB / 380.1 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003713/0.2745, allocations: 169.2 kB / 380.2 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.003e-05/0.2746, allocations: 90.16 kB / 380.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.2748, allocations: 189.4 kB / 380.5 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007564/0.2756, allocations: 0.5035 MB / 381 MB, free: 9.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2756, allocations: 0 / 381 MB, free: 9.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2756, allocations: 0 / 381 MB, free: 9.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.2756, allocations: 0 / 381 MB, free: 9.285 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.001572/0.2772, allocations: 0.7196 MB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2773, allocations: 8.25 kB / 381.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.725e-05/0.2773, allocations: 62.97 kB / 381.8 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.551e-05/0.2775, allocations: 35.75 kB / 381.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.278, allocations: 331.4 kB / 382.2 MB, free: 8.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.898e-05/0.2781, allocations: 55.06 kB / 382.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001709/0.2782, allocations: 40.94 kB / 382.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007072/0.2789, allocations: 321.5 kB / 382.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.279, allocations: 1.078 kB / 382.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.279, allocations: 11.31 kB / 382.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.279, allocations: 8.938 kB / 382.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008439/0.2799, allocations: 302.1 kB / 382.9 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.2819, allocations: 1.16 MB / 384 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.2825, allocations: 287.9 kB / 384.3 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.2829, allocations: 165.4 kB / 384.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.2829, allocations: 11.19 kB / 384.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.283, allocations: 36.64 kB / 384.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.264e-06/0.283, allocations: 1.188 kB / 384.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.009094/0.2921, allocations: 2.419 MB / 387 MB, free: 6.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.2922, allocations: 86.78 kB / 387 MB, free: 6.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/0.2926, allocations: 296 kB / 387.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.2926, allocations: 31.23 kB / 387.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.269e-05/0.2927, allocations: 165.3 kB / 387.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2928, allocations: 157.7 kB / 387.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.293, allocations: 81.59 kB / 387.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.043e-05/0.2931, allocations: 339.2 kB / 388.1 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/0.2935, allocations: 166.9 kB / 388.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.2939, allocations: 229.7 kB / 388.5 MB, free: 5.859 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008147/0.2947, allocations: 408.2 kB / 388.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.2948, allocations: 1.125 kB / 388.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001099/0.2959, allocations: 488.3 kB / 389.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.2959, allocations: 7.094 kB / 389.4 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2959, allocations: 2 kB / 389.4 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.2959, allocations: 2.906 kB / 389.4 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006102/0.2966, allocations: 123.2 kB / 389.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.2966, allocations: 3.344 kB / 389.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.297, allocations: 31.91 kB / 389.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/0.297, allocations: 18.33 kB / 389.5 MB, free: 5.438 MB / 318.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.0001746/0.2972, allocations: 165.2 kB / 389.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2973, allocations: 31.19 kB / 389.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.2992, allocations: 0.6471 MB / 390.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2992, allocations: 5.312 kB / 390.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.2993, allocations: 0 / 390.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2993, allocations: 5.562 kB / 390.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/0.3024, allocations: 1.285 MB / 391.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3024, allocations: 0 / 391.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004387/0.3028, allocations: 89.7 kB / 391.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.3044, allocations: 271.9 kB / 392 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.3044, allocations: 18.56 kB / 392 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00373/0.3082, allocations: 2.44 MB / 394.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3082, allocations: 1.375 kB / 394.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.3105, allocations: 1.008 MB / 395.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.3107, allocations: 150.6 kB / 395.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.977e-05/0.3108, allocations: 7.484 kB / 395.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004834/0.3113, allocations: 32.97 kB / 395.7 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3115, allocations: 41.84 kB / 395.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.3115, allocations: 10.61 kB / 395.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002815/0.3118, allocations: 213.1 kB / 395.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3118, allocations: 0 / 395.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007229/0.3125, allocations: 119.9 kB / 396 MB, free: 1.57 MB / 318.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.002936/0.3155, allocations: 1.588 MB / 397.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3166, allocations: 430.6 kB / 398.1 MB, free: 392 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3166, allocations: 192 / 398.1 MB, free: 392 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007476/0.3174, allocations: 389 kB / 398.4 MB, free: 180 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.318, allocations: 40.64 kB / 398.5 MB, free: 160 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007456/0.3254, allocations: 3.868 MB / 402.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004909/0.326, allocations: 0.7878 MB / 403.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.3262, allocations: 42.41 kB / 403.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.3265, allocations: 114.5 kB / 403.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3265, allocations: 0 / 403.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.3654, allocations: 9.669 MB / 413 MB, free: 7.949 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.97, allocations: 3.938 kB / 413 MB, free: 7.945 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches