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.001164/0.001164, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 198 kB / 18.73 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.409/1.409, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2794, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00553/0.285, allocations: 3.441 MB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002903/0.2879, allocations: 1.652 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004261/0.2883, allocations: 8 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003423/0.2918, allocations: 2.663 MB / 416.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009182/0.2928, allocations: 222.5 kB / 416.7 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008988/0.2937, allocations: 318.7 kB / 417 MB, free: 9.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00241/0.2961, allocations: 1.825 MB / 418.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002946/0.2964, allocations: 136 kB / 419 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005976/0.297, allocations: 313 kB / 419.3 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005108/0.2975, allocations: 330.8 kB / 419.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.2977, allocations: 44 kB / 419.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.298, allocations: 91.92 kB / 419.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007677/0.2987, allocations: 0.8492 MB / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.3, allocations: 0.9462 MB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002821/0.3029, allocations: 2.648 MB / 424.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3029, allocations: 0 / 424.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3029, allocations: 4 kB / 424.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.869e-05/0.303, allocations: 0 / 424.2 MB, free: 2.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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0058/0.3088, allocations: 2.915 MB / 427.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.3089, allocations: 12.03 kB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.309, allocations: 74.72 kB / 427.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006874/0.3097, allocations: 306.9 kB / 427.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/0.3133, allocations: 1.858 MB / 429.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.3134, allocations: 63.02 kB / 429.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.3136, allocations: 51.97 kB / 429.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007238/0.3143, allocations: 394.9 kB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.3144, allocations: 3.938 kB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.3144, allocations: 16 kB / 429.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.3144, allocations: 8 kB / 429.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006956/0.3151, allocations: 331.8 kB / 430.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00475/0.3199, allocations: 2.904 MB / 433.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007518/0.3206, allocations: 317 kB / 433.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.321, allocations: 171.8 kB / 433.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.321, allocations: 7.984 kB / 433.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3211, allocations: 42.5 kB / 433.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.034e-06/0.3211, allocations: 0 / 433.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005194/0.3263, allocations: 2.484 MB / 436.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.3264, allocations: 85.58 kB / 436.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008506/0.3349, allocations: 5.452 MB / 441.7 MB, free: 200 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.332e-05/0.335, allocations: 37.7 kB / 441.7 MB, free: 156 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.3363, allocations: 1.184 MB / 442.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.3366, allocations: 170.5 kB / 443.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.3368, allocations: 94.2 kB / 443.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3369, allocations: 329.9 kB / 443.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.3373, allocations: 137.1 kB / 443.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.3377, allocations: 217.7 kB / 443.8 MB, free: 14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007705/0.3385, allocations: 388.2 kB / 444.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3385, allocations: 4 kB / 444.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001438/0.34, allocations: 0.6933 MB / 444.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.34, allocations: 8 kB / 444.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.34, allocations: 0 / 444.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.3401, allocations: 4 kB / 444.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.3406, allocations: 132 kB / 445 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.3406, allocations: 4 kB / 445 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.3412, allocations: 16 kB / 445.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.3413, allocations: 19.98 kB / 445.1 MB, free: 12.71 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.001177/0.3425, allocations: 0.9346 MB / 446 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004735/0.3429, allocations: 282.1 kB / 446.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.3446, allocations: 0.7982 MB / 447.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.3446, allocations: 7.984 kB / 447.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3446, allocations: 0 / 447.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3446, allocations: 7.984 kB / 447.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.3467, allocations: 1.477 MB / 448.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.3467, allocations: 3.984 kB / 448.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004341/0.3472, allocations: 95.89 kB / 448.7 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003652/0.3475, allocations: 92.72 kB / 448.8 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.3476, allocations: 15.94 kB / 448.8 MB, free: 8.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006189/0.3482, allocations: 0.6344 MB / 449.4 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3482, allocations: 0 / 449.4 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.35, allocations: 1.094 MB / 450.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009583/0.351, allocations: 0.4991 MB / 451 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/0.3513, allocations: 12 kB / 451 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000577/0.3519, allocations: 19.98 kB / 451 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.391e-05/0.3519, allocations: 24.41 kB / 451.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.352, allocations: 15.98 kB / 451.1 MB, free: 6.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005257/0.3572, allocations: 3.986 MB / 455.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3573, allocations: 3.938 kB / 455.1 MB, free: 2.574 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008672/0.3581, allocations: 212 kB / 455.3 MB, free: 2.367 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.003154/0.3613, allocations: 1.94 MB / 457.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007964/0.3621, allocations: 377.4 kB / 457.6 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3621, allocations: 64 / 457.6 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.3626, allocations: 218.5 kB / 457.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.3639, allocations: 189.6 kB / 458 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04127/0.4052, allocations: 19.43 MB / 477.4 MB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002/0.4072, allocations: 1.821 MB / 479.2 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008733/0.4081, allocations: 267.8 kB / 479.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001478/0.4096, allocations: 0.9406 MB / 480.4 MB, free: 9.098 MB / 398.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4096, allocations: 0 / 480.4 MB, free: 9.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07874/0.4884, allocations: 38.82 MB / 0.5071 GB, free: 2.547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.64/17.13, allocations: 8.359 kB / 0.5071 GB, free: 2.539 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.0.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