Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0-beta_om_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.001442/0.001442, 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.00159/0.00159, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.47/1.47, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2779, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.01047/0.2885, allocations: 4.385 MB / 413.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005044/0.2936, allocations: 1.648 MB / 415.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000649/0.2943, allocations: 11.94 kB / 415.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006655/0.2951, allocations: 126.9 kB / 415.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.2967, allocations: 353.6 kB / 415.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009385/0.2977, allocations: 243.6 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002037/0.2997, allocations: 0.9784 MB / 416.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006164/0.3004, allocations: 241.4 kB / 417 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008589/0.3013, allocations: 378.7 kB / 417.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009343/0.3022, allocations: 430.3 kB / 417.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002326/0.3025, allocations: 100 kB / 417.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006952/0.3032, allocations: 219.9 kB / 418.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.3035, allocations: 191.4 kB / 418.3 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006719/0.3042, allocations: 418.1 kB / 418.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00214/0.3063, allocations: 1.174 MB / 419.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3064, allocations: 0 / 419.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3064, allocations: 0 / 419.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.3064, allocations: 0 / 419.9 MB, free: 6.484 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.004124/0.3105, allocations: 1.121 MB / 421 MB, free: 5.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/0.3106, allocations: 12.03 kB / 421 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001827/0.3108, allocations: 98.69 kB / 421.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004144/0.3112, allocations: 92.45 kB / 421.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.3126, allocations: 0.5188 MB / 421.7 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.3128, allocations: 75.58 kB / 421.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003415/0.3132, allocations: 72.3 kB / 421.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.3152, allocations: 0.5981 MB / 422.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.724e-05/0.3152, allocations: 7.938 kB / 422.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.3153, allocations: 24 kB / 422.5 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.707e-05/0.3154, allocations: 12 kB / 422.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002226/0.3176, allocations: 0.5244 MB / 423.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00638/0.324, allocations: 2.295 MB / 425.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.3259, allocations: 481.3 kB / 425.8 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.327, allocations: 262 kB / 426.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.615e-05/0.327, allocations: 11.94 kB / 426.1 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.419e-05/0.3271, allocations: 46.48 kB / 426.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 5.35e-06/0.3271, allocations: 0 / 426.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01754/0.3447, allocations: 3.568 MB / 429.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.3448, allocations: 85.66 kB / 429.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008554/0.3457, allocations: 0.5332 MB / 430.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.3457, allocations: 37.7 kB / 430.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.346, allocations: 316.9 kB / 430.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.3462, allocations: 222.1 kB / 430.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.3465, allocations: 114.3 kB / 431 MB, free: 10.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.3467, allocations: 362.8 kB / 431.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006071/0.3473, allocations: 253.2 kB / 431.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006772/0.348, allocations: 344.4 kB / 431.9 MB, free: 10 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3493, allocations: 0.6058 MB / 432.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3493, allocations: 4 kB / 432.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001728/0.3511, allocations: 0.7455 MB / 433.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3511, allocations: 4 kB / 433.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3511, allocations: 7.984 kB / 433.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.3513, allocations: 28.84 kB / 433.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000821/0.3521, allocations: 167.8 kB / 433.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.3536, allocations: 1.435 MB / 434.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.3542, allocations: 39.97 kB / 435 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.3543, allocations: 24 kB / 435 MB, free: 6.762 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.0003949/0.3547, allocations: 199 kB / 435.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.3549, allocations: 67.58 kB / 435.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.357, allocations: 0.8414 MB / 436.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.357, allocations: 7.938 kB / 436.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.357, allocations: 8 kB / 436.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.3571, allocations: 3.984 kB / 436.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00411/0.3612, allocations: 1.842 MB / 437.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.3612, allocations: 3.984 kB / 438 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005423/0.3618, allocations: 111.8 kB / 438.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002426/0.3642, allocations: 479.5 kB / 438.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.3643, allocations: 15.98 kB / 438.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005668/0.3699, allocations: 3.139 MB / 441.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.37, allocations: 0 / 441.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.3733, allocations: 1.371 MB / 443.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003984/0.3737, allocations: 216.7 kB / 443.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.3739, allocations: 12 kB / 443.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006532/0.3745, allocations: 47.95 kB / 443.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.3747, allocations: 44.5 kB / 443.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.634e-05/0.3748, allocations: 20 kB / 443.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000572/0.3753, allocations: 394.8 kB / 443.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3753, allocations: 3.938 kB / 443.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008195/0.3762, allocations: 187.9 kB / 444 MB, free: 13.52 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.003752/0.3799, allocations: 1.962 MB / 445.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.3817, allocations: 0.7325 MB / 446.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.3817, allocations: 4 kB / 446.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.3827, allocations: 0.5177 MB / 447.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008187/0.3836, allocations: 97.92 kB / 447.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.3941, allocations: 5.939 MB / 453.2 MB, free: 4.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006516/0.3948, allocations: 0.9082 MB / 454.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.3952, allocations: 72.8 kB / 454.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.3956, allocations: 243.3 kB / 454.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3956, allocations: 0 / 454.4 MB, free: 2.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05611/0.4517, allocations: 15.77 MB / 470.2 MB, free: 3.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.61, allocations: 11.62 kB / 470.2 MB, free: 3.359 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1)