Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001117/0.001117, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2842, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00605/0.2903, allocations: 4.384 MB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003261/0.2935, allocations: 1.644 MB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007432/0.2943, allocations: 11.94 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005318/0.2949, allocations: 118.9 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.2961, allocations: 377.5 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000585/0.2967, allocations: 239.6 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.2978, allocations: 0.9862 MB / 416.5 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.2982, allocations: 233.4 kB / 416.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006461/0.2988, allocations: 386.7 kB / 417.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006472/0.2995, allocations: 430.3 kB / 417.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.2997, allocations: 96 kB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004826/0.3002, allocations: 215.9 kB / 417.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.3004, allocations: 199.3 kB / 418 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005597/0.301, allocations: 410.1 kB / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001322/0.3023, allocations: 1.182 MB / 419.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3023, allocations: 0 / 419.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3023, allocations: 0 / 419.6 MB, free: 6.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.195e-05/0.3024, allocations: 0 / 419.6 MB, free: 6.613 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.002688/0.3051, allocations: 1.117 MB / 420.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3051, allocations: 12.03 kB / 420.7 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.3053, allocations: 98.69 kB / 420.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002813/0.3055, allocations: 92.45 kB / 420.9 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008587/0.3064, allocations: 0.5188 MB / 421.4 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/0.3065, allocations: 75.58 kB / 421.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.3067, allocations: 68.3 kB / 421.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.3078, allocations: 0.5981 MB / 422.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.3079, allocations: 4 kB / 422.2 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.623e-05/0.3079, allocations: 24 kB / 422.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.308, allocations: 12 kB / 422.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.3091, allocations: 0.5282 MB / 422.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003507/0.3126, allocations: 2.299 MB / 425 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.3137, allocations: 485.2 kB / 425.5 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005323/0.3142, allocations: 262.1 kB / 425.8 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.173e-05/0.3143, allocations: 8 kB / 425.8 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.3143, allocations: 42.44 kB / 425.8 MB, free: 124 kB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.994e-06/0.3143, allocations: 0 / 425.8 MB, free: 124 kB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01309/0.3274, allocations: 3.571 MB / 429.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.3275, allocations: 89.59 kB / 429.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.3283, allocations: 0.5371 MB / 430 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.146e-05/0.3283, allocations: 37.7 kB / 430.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.3286, allocations: 320.9 kB / 430.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.3288, allocations: 222.1 kB / 430.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.329, allocations: 114.3 kB / 430.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3292, allocations: 362.8 kB / 431.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000568/0.3298, allocations: 249.2 kB / 431.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000602/0.3304, allocations: 344.4 kB / 431.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.3316, allocations: 0.6135 MB / 432.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3316, allocations: 0 / 432.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001541/0.3331, allocations: 0.7452 MB / 433 MB, free: 8.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3332, allocations: 4 kB / 433 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3332, allocations: 7.984 kB / 433 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.3334, allocations: 33.16 kB / 433 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007664/0.3341, allocations: 167.8 kB / 433.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.3352, allocations: 1.426 MB / 434.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005881/0.3358, allocations: 43.97 kB / 434.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.3359, allocations: 20 kB / 434.7 MB, free: 6.891 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.000289/0.3362, allocations: 212.7 kB / 434.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.3363, allocations: 63.58 kB / 435 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/0.3382, allocations: 0.8413 MB / 435.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.3382, allocations: 7.938 kB / 435.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3382, allocations: 7.984 kB / 435.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3382, allocations: 0 / 435.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.3418, allocations: 1.846 MB / 437.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3419, allocations: 4 kB / 437.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/0.3424, allocations: 107.9 kB / 437.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/0.3447, allocations: 472.2 kB / 438.2 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.3447, allocations: 15.98 kB / 438.2 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005026/0.3498, allocations: 3.151 MB / 441.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3498, allocations: 4.062 kB / 441.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.3527, allocations: 1.367 MB / 442.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003768/0.3531, allocations: 216.7 kB / 443 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.3532, allocations: 16 kB / 443 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006359/0.3539, allocations: 39.95 kB / 443 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.354, allocations: 48.5 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.3541, allocations: 19.98 kB / 443.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004928/0.3546, allocations: 390.9 kB / 443.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3546, allocations: 0 / 443.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000773/0.3554, allocations: 187.9 kB / 443.7 MB, free: 13.65 MB / 366.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.003478/0.3588, allocations: 1.966 MB / 445.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.3604, allocations: 0.7363 MB / 446.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3604, allocations: 0 / 446.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009114/0.3614, allocations: 0.5257 MB / 446.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007457/0.3621, allocations: 93.81 kB / 447 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009487/0.3716, allocations: 5.944 MB / 452.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3721, allocations: 0.9004 MB / 453.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003434/0.3725, allocations: 68.81 kB / 453.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/0.3729, allocations: 239.3 kB / 454.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3729, allocations: 4 kB / 454.1 MB, free: 2.938 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04232/0.4152, allocations: 15.77 MB / 469.9 MB, free: 3.461 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.67, allocations: 5.609 kB / 469.9 MB, free: 3.457 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches