Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 59.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.273, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005542/0.2786, allocations: 3.438 MB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003076/0.2817, allocations: 1.652 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.2821, allocations: 7.938 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003418/0.2855, allocations: 2.663 MB / 416.5 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007304/0.2863, allocations: 214.5 kB / 416.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009138/0.2872, allocations: 330.4 kB / 417.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002742/0.29, allocations: 1.813 MB / 418.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003205/0.2903, allocations: 143.9 kB / 419 MB, free: 7.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005992/0.2909, allocations: 309 kB / 419.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005902/0.2915, allocations: 338.7 kB / 419.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.2917, allocations: 44 kB / 419.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.2919, allocations: 87.98 kB / 419.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006923/0.2926, allocations: 0.8491 MB / 420.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009854/0.2936, allocations: 0.9424 MB / 421.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002803/0.2964, allocations: 2.652 MB / 424.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2964, allocations: 4 kB / 424.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.2965, allocations: 0 / 424.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.19e-05/0.2965, allocations: 0 / 424.2 MB, free: 2.055 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004105/0.3006, allocations: 2.911 MB / 427.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.3007, allocations: 11.97 kB / 427.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.817e-05/0.3008, allocations: 74.72 kB / 427.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005075/0.3013, allocations: 310.9 kB / 427.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002626/0.3039, allocations: 1.858 MB / 429.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.625e-05/0.304, allocations: 66.94 kB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.3042, allocations: 51.98 kB / 429.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.305, allocations: 391 kB / 429.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.305, allocations: 0 / 429.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.305, allocations: 16 kB / 429.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3051, allocations: 8 kB / 429.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007091/0.3058, allocations: 335.7 kB / 430.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004274/0.3101, allocations: 2.896 MB / 433.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.3108, allocations: 325 kB / 433.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003304/0.3111, allocations: 164 kB / 433.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.3112, allocations: 7.984 kB / 433.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.3112, allocations: 42.5 kB / 433.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.3112, allocations: 0 / 433.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005049/0.3163, allocations: 2.492 MB / 436.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.3163, allocations: 85.58 kB / 436.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006537/0.3229, allocations: 5.448 MB / 441.7 MB, free: 240 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.581e-05/0.323, allocations: 37.7 kB / 441.7 MB, free: 196 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.3242, allocations: 1.188 MB / 442.9 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.3243, allocations: 174.5 kB / 443.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.3245, allocations: 90.14 kB / 443.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3247, allocations: 322 kB / 443.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.325, allocations: 145 kB / 443.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003896/0.3254, allocations: 217.7 kB / 443.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/0.3262, allocations: 388.2 kB / 444.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3262, allocations: 4 kB / 444.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001279/0.3275, allocations: 0.7011 MB / 444.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3275, allocations: 4 kB / 444.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.3275, allocations: 4 kB / 444.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.541e-05/0.3276, allocations: 12.12 kB / 444.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005266/0.3281, allocations: 119.9 kB / 445 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3281, allocations: 4 kB / 445 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.3287, allocations: 19.98 kB / 445.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.3287, allocations: 19.94 kB / 445.1 MB, free: 12.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (62): * Single equations (assignments): 62 * 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.001417/0.3302, allocations: 0.9191 MB / 446 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/0.3306, allocations: 290.1 kB / 446.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.3322, allocations: 0.8059 MB / 447.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3322, allocations: 4 kB / 447.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3322, allocations: 0 / 447.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.3322, allocations: 0 / 447.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.334, allocations: 1.477 MB / 448.6 MB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.334, allocations: 4 kB / 448.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.3345, allocations: 99.88 kB / 448.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003639/0.3349, allocations: 88.8 kB / 448.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.3349, allocations: 11.98 kB / 448.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006167/0.3356, allocations: 0.6343 MB / 449.4 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3356, allocations: 0 / 449.4 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.3374, allocations: 1.102 MB / 450.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007844/0.3382, allocations: 0.4952 MB / 451 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.3384, allocations: 8 kB / 451 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.3389, allocations: 24.11 kB / 451 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.339, allocations: 32.39 kB / 451.1 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.339, allocations: 12 kB / 451.1 MB, free: 6.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005476/0.3445, allocations: 3.986 MB / 455.1 MB, free: 2.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3445, allocations: 4 kB / 455.1 MB, free: 2.609 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000868/0.3454, allocations: 212 kB / 455.3 MB, free: 2.402 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * 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 (41): * Single equations (assignments): 40 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003961/0.3494, allocations: 1.928 MB / 457.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009203/0.3503, allocations: 385.3 kB / 457.6 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3503, allocations: 4.062 kB / 457.6 MB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.3508, allocations: 214.3 kB / 457.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.3521, allocations: 208.6 kB / 458 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04408/0.3962, allocations: 19.41 MB / 477.4 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001997/0.3983, allocations: 1.821 MB / 479.2 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006687/0.399, allocations: 271.8 kB / 479.5 MB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/0.4003, allocations: 0.9406 MB / 480.4 MB, free: 9.133 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4003, allocations: 0 / 480.4 MB, free: 9.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09169/0.492, allocations: 38.83 MB / 0.5071 GB, free: 2.578 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/18.26, allocations: 448 / 0.5071 GB, free: 2.578 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches