Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.001306/0.001306, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001438/0.001438, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.301, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005331/0.3064, allocations: 4.375 MB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002493/0.3089, allocations: 1.578 MB / 406.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.3093, allocations: 15.94 kB / 406.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003804/0.3096, allocations: 126.9 kB / 406.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007448/0.3104, allocations: 361.6 kB / 406.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.3108, allocations: 235.6 kB / 406.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008375/0.3117, allocations: 0.9823 MB / 407.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003271/0.312, allocations: 237.4 kB / 408.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004187/0.3124, allocations: 374.7 kB / 408.5 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000459/0.3129, allocations: 434.2 kB / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.313, allocations: 96 kB / 409 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.3134, allocations: 215.9 kB / 409.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.3135, allocations: 195.3 kB / 409.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003415/0.3139, allocations: 418.1 kB / 409.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001134/0.315, allocations: 1.166 MB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.315, allocations: 0 / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3151, allocations: 4 kB / 411 MB, free: 14.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.3151, allocations: 0 / 411 MB, free: 14.03 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002282/0.3174, allocations: 1.11 MB / 412.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.3174, allocations: 11.89 kB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000131/0.3176, allocations: 98.7 kB / 412.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.3177, allocations: 84.42 kB / 412.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.3185, allocations: 0.5149 MB / 412.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.3186, allocations: 75.56 kB / 412.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.3188, allocations: 76.3 kB / 412.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.3198, allocations: 0.5941 MB / 413.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3199, allocations: 7.984 kB / 413.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.357e-05/0.3199, allocations: 20 kB / 413.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.32, allocations: 16 kB / 413.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.321, allocations: 0.5282 MB / 414.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003097/0.3241, allocations: 2.295 MB / 416.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.3251, allocations: 478.9 kB / 416.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005392/0.3256, allocations: 266.7 kB / 417.1 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.3257, allocations: 4 kB / 417.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.3257, allocations: 46.5 kB / 417.2 MB, free: 7.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.703e-06/0.3257, allocations: 3.938 kB / 417.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01204/0.3377, allocations: 3.573 MB / 420.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.3378, allocations: 85.67 kB / 420.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006379/0.3385, allocations: 0.5293 MB / 421.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.3385, allocations: 37.7 kB / 421.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.3387, allocations: 320.8 kB / 421.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.3389, allocations: 222.1 kB / 421.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.3391, allocations: 114.3 kB / 422.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.3392, allocations: 362.8 kB / 422.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005208/0.3397, allocations: 253.2 kB / 422.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005662/0.3403, allocations: 348.4 kB / 423 MB, free: 1.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.3414, allocations: 0.6019 MB / 423.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3414, allocations: 4 kB / 423.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001419/0.3429, allocations: 0.7494 MB / 424.4 MB, free: 172 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3429, allocations: 4 kB / 424.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3429, allocations: 4 kB / 424.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.3431, allocations: 28.84 kB / 424.4 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007623/0.3438, allocations: 167.9 kB / 424.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009929/0.3448, allocations: 1.43 MB / 426 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/0.3454, allocations: 47.91 kB / 426 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.3454, allocations: 23.98 kB / 426.1 MB, free: 14.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002671/0.3457, allocations: 201.7 kB / 426.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.3459, allocations: 63.58 kB / 426.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.3475, allocations: 0.8414 MB / 427.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3476, allocations: 7.938 kB / 427.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3476, allocations: 8 kB / 427.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3476, allocations: 3.984 kB / 427.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.351, allocations: 1.838 MB / 429 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.351, allocations: 0 / 429 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005028/0.3515, allocations: 115.6 kB / 429.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/0.3537, allocations: 468.3 kB / 429.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.3538, allocations: 19.98 kB / 429.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004745/0.3585, allocations: 3.15 MB / 432.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3585, allocations: 0 / 432.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002795/0.3613, allocations: 1.367 MB / 434.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/0.3616, allocations: 212.6 kB / 434.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-05/0.3617, allocations: 15.98 kB / 434.3 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005694/0.3623, allocations: 47.91 kB / 434.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.3624, allocations: 48.44 kB / 434.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.3625, allocations: 23.98 kB / 434.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004281/0.3629, allocations: 386.9 kB / 434.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3629, allocations: 0 / 434.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006803/0.3636, allocations: 192 kB / 435 MB, free: 5.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003139/0.3668, allocations: 1.966 MB / 437 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.3682, allocations: 0.7325 MB / 437.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3682, allocations: 7.938 kB / 437.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008373/0.3691, allocations: 0.5178 MB / 438.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.3697, allocations: 89.86 kB / 438.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008442/0.3782, allocations: 5.928 MB / 444.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.3787, allocations: 0.9043 MB / 445.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003438/0.379, allocations: 68.81 kB / 445.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.3794, allocations: 239.3 kB / 445.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3794, allocations: 0 / 445.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05311/0.4325, allocations: 15.74 MB / 461.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.67, allocations: 19.05 kB / 461.2 MB, free: 10.96 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches