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.001321/0.001321, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001276/0.001276, allocations: 189.4 kB / 18 MB, free: 5.102 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.405/1.405, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2895, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.008431/0.298, allocations: 4.354 MB / 404.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004311/0.3024, allocations: 1.594 MB / 406.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008877/0.3033, allocations: 12 kB / 406.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007553/0.3041, allocations: 130.8 kB / 406.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001756/0.3059, allocations: 357.6 kB / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008629/0.3068, allocations: 231.5 kB / 406.9 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002015/0.3088, allocations: 0.9745 MB / 407.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006074/0.3094, allocations: 241.4 kB / 408.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000898/0.3103, allocations: 374.7 kB / 408.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.3114, allocations: 434.2 kB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003668/0.3118, allocations: 96.05 kB / 409 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008274/0.3126, allocations: 215.8 kB / 409.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003685/0.313, allocations: 195.3 kB / 409.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.314, allocations: 410.1 kB / 409.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002309/0.3163, allocations: 1.17 MB / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3164, allocations: 4 kB / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3164, allocations: 0 / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.3164, allocations: 0 / 411 MB, free: 14.02 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.003855/0.3203, allocations: 1.106 MB / 412.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.3203, allocations: 8.031 kB / 412.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.3205, allocations: 102.7 kB / 412.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/0.3208, allocations: 84.42 kB / 412.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3218, allocations: 0.5188 MB / 412.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.3219, allocations: 75.56 kB / 412.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002069/0.3221, allocations: 76.3 kB / 412.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.3234, allocations: 0.5981 MB / 413.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3234, allocations: 3.938 kB / 413.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.656e-05/0.3235, allocations: 24 kB / 413.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.3235, allocations: 12 kB / 413.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.3247, allocations: 0.5282 MB / 414.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003797/0.3286, allocations: 2.287 MB / 416.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.3296, allocations: 486.8 kB / 416.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005818/0.3302, allocations: 258.8 kB / 417.1 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.3303, allocations: 4 kB / 417.1 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.896e-05/0.3303, allocations: 62.36 kB / 417.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.244e-06/0.3304, allocations: 0 / 417.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01288/0.3432, allocations: 3.561 MB / 420.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.3433, allocations: 89.61 kB / 420.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000774/0.3441, allocations: 0.5332 MB / 421.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.328e-05/0.3442, allocations: 37.7 kB / 421.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.3444, allocations: 320.8 kB / 421.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3446, allocations: 210.2 kB / 421.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.3449, allocations: 114.3 kB / 422 MB, free: 2.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.345, allocations: 366.8 kB / 422.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005934/0.3457, allocations: 249.2 kB / 422.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006519/0.3463, allocations: 352.4 kB / 423 MB, free: 1.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.3476, allocations: 0.6019 MB / 423.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3476, allocations: 8 kB / 423.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001599/0.3492, allocations: 0.7416 MB / 424.3 MB, free: 168 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3492, allocations: 4 kB / 424.3 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3492, allocations: 4 kB / 424.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/0.3494, allocations: 32.83 kB / 424.4 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007877/0.3502, allocations: 167.8 kB / 424.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.3515, allocations: 1.438 MB / 426 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005566/0.3521, allocations: 43.98 kB / 426 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.3521, allocations: 23.98 kB / 426 MB, free: 14.31 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.0002916/0.3524, allocations: 197.7 kB / 426.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.3526, allocations: 63.58 kB / 426.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3545, allocations: 0.8413 MB / 427.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3545, allocations: 7.938 kB / 427.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3545, allocations: 8 kB / 427.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.3545, allocations: 3.984 kB / 427.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/0.3583, allocations: 1.842 MB / 429 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3584, allocations: 0 / 429 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.3589, allocations: 107.9 kB / 429.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002347/0.3613, allocations: 484.3 kB / 429.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.3613, allocations: 12 kB / 429.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005574/0.3669, allocations: 3.142 MB / 432.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3669, allocations: 0 / 432.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003341/0.3703, allocations: 1.383 MB / 434.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.3708, allocations: 212.6 kB / 434.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3709, allocations: 12 kB / 434.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007146/0.3716, allocations: 43.97 kB / 434.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.3718, allocations: 48.48 kB / 434.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.479e-05/0.3719, allocations: 20 kB / 434.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006772/0.3726, allocations: 386.9 kB / 434.8 MB, free: 5.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3726, allocations: 3.938 kB / 434.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000851/0.3734, allocations: 188.1 kB / 435 MB, free: 5.082 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.003796/0.3772, allocations: 1.97 MB / 437 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.379, allocations: 0.7247 MB / 437.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.379, allocations: 4 kB / 437.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.38, allocations: 0.5177 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.0007384/0.3808, allocations: 102 kB / 438.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.3913, allocations: 5.928 MB / 444.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005997/0.3919, allocations: 0.9043 MB / 445.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.3923, allocations: 68.81 kB / 445.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/0.3927, allocations: 243.3 kB / 445.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3927, allocations: 0 / 445.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04851/0.4412, allocations: 15.74 MB / 461.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.25, allocations: 11.53 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