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.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 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0-beta_om_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.001781/0.001781, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00224/0.00224, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.518/1.518, allocations: 227.7 MB / 247 MB, free: 10.36 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.001905/0.001905, allocations: 64.92 kB / 307.3 MB, free: 408 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09516, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005171/0.1004, allocations: 3.446 MB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.1035, allocations: 1.66 MB / 363 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.1039, allocations: 12 kB / 363 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003282/0.1072, allocations: 2.659 MB / 365.6 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000667/0.1079, allocations: 218.5 kB / 365.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007897/0.1087, allocations: 318.7 kB / 366.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.1107, allocations: 1.825 MB / 368 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.1109, allocations: 131.7 kB / 368.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004602/0.1114, allocations: 321 kB / 368.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004283/0.1118, allocations: 330.8 kB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-05/0.1119, allocations: 44 kB / 368.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.1122, allocations: 95.97 kB / 368.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006876/0.1129, allocations: 0.8491 MB / 369.7 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008086/0.1137, allocations: 0.9423 MB / 370.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.167/0.2807, allocations: 2.596 MB / 373.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.2808, allocations: 0 / 373.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.2808, allocations: 1.062 kB / 373.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.567e-05/0.2809, allocations: 0 / 373.3 MB, free: 13.04 MB / 302.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.004863/0.2858, allocations: 2.815 MB / 376.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.2858, allocations: 9.594 kB / 376.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.702e-05/0.2859, allocations: 75.25 kB / 376.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006348/0.2866, allocations: 290.7 kB / 376.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.2894, allocations: 1.834 MB / 378.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.18e-05/0.2895, allocations: 59.64 kB / 378.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/0.2897, allocations: 49.36 kB / 378.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000829/0.2905, allocations: 390.9 kB / 378.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.2906, allocations: 4.094 kB / 378.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.2906, allocations: 15.95 kB / 378.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2906, allocations: 8.25 kB / 378.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007003/0.2913, allocations: 338.8 kB / 379.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006818/0.2982, allocations: 2.911 MB / 382.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006795/0.2989, allocations: 317.4 kB / 382.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.2992, allocations: 160.9 kB / 382.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.2993, allocations: 4.062 kB / 382.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.2993, allocations: 40.45 kB / 382.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.374e-06/0.2993, allocations: 0 / 382.6 MB, free: 9.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005437/0.3048, allocations: 2.405 MB / 385 MB, free: 7.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3048, allocations: 83.2 kB / 385.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008632/0.3135, allocations: 5.455 MB / 390.5 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.3136, allocations: 39.75 kB / 390.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000928/0.3145, allocations: 1.182 MB / 391.7 MB, free: 4.973 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.3147, allocations: 167.9 kB / 391.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.3149, allocations: 88.94 kB / 392 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.315, allocations: 328.8 kB / 392.3 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000395/0.3154, allocations: 139.7 kB / 392.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.3158, allocations: 221 kB / 392.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006841/0.3165, allocations: 384 kB / 393 MB, free: 4.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3165, allocations: 1.406 kB / 393 MB, free: 4.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002143/0.3187, allocations: 0.6866 MB / 393.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.3187, allocations: 10.44 kB / 393.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3187, allocations: 5.234 kB / 393.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.3188, allocations: 4.219 kB / 393.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.3193, allocations: 120.6 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.3193, allocations: 6.094 kB / 393.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.3205, allocations: 16.11 kB / 393.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.3205, allocations: 17.69 kB / 393.9 MB, free: 3.738 MB / 302.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.002167/0.3227, allocations: 0.9259 MB / 394.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008855/0.3236, allocations: 275.4 kB / 395.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.326, allocations: 0.797 MB / 395.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.326, allocations: 4.219 kB / 395.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.326, allocations: 4 kB / 395.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.346e-05/0.3261, allocations: 5.312 kB / 395.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/0.3311, allocations: 1.477 MB / 397.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.3311, allocations: 0.6875 kB / 397.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/0.3317, allocations: 101.3 kB / 397.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005116/0.3323, allocations: 92.45 kB / 397.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.736e-05/0.3324, allocations: 11.08 kB / 397.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005151/0.3329, allocations: 0.6348 MB / 398.2 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3329, allocations: 0 / 398.2 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002544/0.3354, allocations: 1.091 MB / 399.3 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001613/0.3371, allocations: 490.2 kB / 399.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000736/0.3378, allocations: 7.094 kB / 399.8 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009766/0.3388, allocations: 25.45 kB / 399.8 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.172e-05/0.3389, allocations: 30.58 kB / 399.8 MB, free: 432 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.339, allocations: 17.48 kB / 399.9 MB, free: 424 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.008754/0.3477, allocations: 3.985 MB / 403.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.81e-07/0.3478, allocations: 4 kB / 403.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001735/0.3495, allocations: 204 kB / 404 MB, free: 12.35 MB / 318.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.00483/0.3544, allocations: 1.945 MB / 406 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3555, allocations: 406.8 kB / 406.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3555, allocations: 0 / 406.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005135/0.3561, allocations: 215.4 kB / 406.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00226/0.3583, allocations: 191.8 kB / 406.8 MB, free: 9.793 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06261/0.421, allocations: 22.48 MB / 429.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/0.4234, allocations: 1.822 MB / 431.1 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001003/0.4244, allocations: 275.9 kB / 431.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/0.4263, allocations: 0.9366 MB / 432.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4263, allocations: 0 / 432.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09332/0.5196, allocations: 38.29 MB / 470.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/13.01, allocations: 7.031 kB / 470.6 MB, free: 8.98 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1)