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.InductorWithHysteresis.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.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001378/0.001378, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 202 kB / 18.74 MB, free: 4.332 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.506/1.506, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001968/0.001968, allocations: 63.91 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3418, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005036/0.3469, allocations: 2.839 MB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.3495, allocations: 1.285 MB / 413.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.3498, allocations: 11.94 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.3501, allocations: 71.36 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007079/0.3508, allocations: 214.8 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.3511, allocations: 135.7 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005202/0.3517, allocations: 463 kB / 414.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.3519, allocations: 84.7 kB / 414.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003049/0.3522, allocations: 183.4 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.3525, allocations: 223.2 kB / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.811e-05/0.3526, allocations: 44 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003914/0.353, allocations: 171.8 kB / 414.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001795/0.3532, allocations: 95.64 kB / 414.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.3534, allocations: 187.1 kB / 415 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008633/0.3543, allocations: 0.5088 MB / 415.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.3543, allocations: 4 kB / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3543, allocations: 0 / 415.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3543, allocations: 0 / 415.5 MB, free: 10.85 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001998/0.3563, allocations: 0.7207 MB / 416.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.3564, allocations: 8.031 kB / 416.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.86e-05/0.3565, allocations: 58.73 kB / 416.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.3567, allocations: 44.73 kB / 416.4 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.3574, allocations: 341.4 kB / 416.7 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-05/0.3575, allocations: 58.75 kB / 416.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.3576, allocations: 32.31 kB / 416.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/0.3583, allocations: 328.4 kB / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3584, allocations: 0 / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.449e-05/0.3584, allocations: 16 kB / 417.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3584, allocations: 4 kB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008072/0.3592, allocations: 302 kB / 417.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.3612, allocations: 1.156 MB / 418.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006552/0.3618, allocations: 293 kB / 418.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000472/0.3623, allocations: 161.6 kB / 419 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.3624, allocations: 4 kB / 419 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.3624, allocations: 38.56 kB / 419.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.3624, allocations: 0 / 419.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009661/0.3721, allocations: 2.427 MB / 421.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.3722, allocations: 89.09 kB / 421.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000419/0.3726, allocations: 289 kB / 421.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.3728, allocations: 29.7 kB / 421.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.3729, allocations: 176.6 kB / 422.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.3731, allocations: 158.6 kB / 422.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.3732, allocations: 78.11 kB / 422.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.3734, allocations: 342.8 kB / 422.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.3739, allocations: 164.8 kB / 422.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.3744, allocations: 230.6 kB / 423 MB, free: 2.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/0.3753, allocations: 399.8 kB / 423.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3754, allocations: 0 / 423.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001112/0.3765, allocations: 492.6 kB / 423.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3765, allocations: 8 kB / 423.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.3765, allocations: 7.938 kB / 423.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3766, allocations: 4 kB / 423.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.3772, allocations: 115.8 kB / 424 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.3772, allocations: 4 kB / 424 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003991/0.3776, allocations: 39.97 kB / 424.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.3777, allocations: 15.98 kB / 424.1 MB, free: 1.902 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0003027/0.378, allocations: 157.7 kB / 424.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3781, allocations: 31.81 kB / 424.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.3801, allocations: 0.6525 MB / 424.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.3801, allocations: 4 kB / 424.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3801, allocations: 4 kB / 424.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.3801, allocations: 7.984 kB / 424.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.3835, allocations: 1.283 MB / 426.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.3835, allocations: 0 / 426.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.384, allocations: 91.89 kB / 426.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/0.3856, allocations: 268.5 kB / 426.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.3856, allocations: 8 kB / 426.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004466/0.3901, allocations: 2.443 MB / 429 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3901, allocations: 8.062 kB / 429 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.3926, allocations: 1.011 MB / 430 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.3929, allocations: 153 kB / 430.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.955e-05/0.3929, allocations: 8 kB / 430.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.3934, allocations: 31.91 kB / 430.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/0.3936, allocations: 32.39 kB / 430.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.3937, allocations: 15.98 kB / 430.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002799/0.394, allocations: 216.5 kB / 430.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.394, allocations: 0 / 430.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005848/0.3946, allocations: 119.9 kB / 430.6 MB, free: 11.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002876/0.3974, allocations: 1.59 MB / 432.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3985, allocations: 430.3 kB / 432.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3986, allocations: 0 / 432.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008485/0.3994, allocations: 396.7 kB / 433 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005287/0.4, allocations: 37.34 kB / 433 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006516/0.4065, allocations: 3.867 MB / 436.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.407, allocations: 0.7813 MB / 437.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002347/0.4072, allocations: 46.94 kB / 437.7 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.4075, allocations: 127.3 kB / 437.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4075, allocations: 0 / 437.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/0.4496, allocations: 9.707 MB / 447.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.38, allocations: 9.828 kB / 447.6 MB, free: 10.18 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1)