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.001653/0.001653, allocations: 114.9 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001558/0.001558, allocations: 205.2 kB / 18.79 MB, free: 4.141 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.51/1.51, allocations: 230.4 MB / 250 MB, free: 9.156 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.002044/0.002044, allocations: 67.83 kB / 366.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3574, allocations: 53.31 MB / 420.2 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006073/0.3635, allocations: 4.412 MB / 424.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.3667, allocations: 1.652 MB / 426.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003843/0.367, allocations: 11.94 kB / 426.2 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000403/0.3675, allocations: 126.9 kB / 426.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008973/0.3683, allocations: 361.6 kB / 426.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.3689, allocations: 243.6 kB / 426.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.3701, allocations: 0.9823 MB / 427.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.3705, allocations: 165.4 kB / 428.1 MB, free: 364 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005855/0.3711, allocations: 382.8 kB / 428.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005579/0.3716, allocations: 426.2 kB / 428.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.3718, allocations: 96 kB / 429 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004333/0.3722, allocations: 223.9 kB / 429.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.3724, allocations: 195.3 kB / 429.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004166/0.3728, allocations: 414.1 kB / 429.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.3744, allocations: 1.178 MB / 431 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3744, allocations: 0 / 431 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3744, allocations: 0 / 431 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.3744, allocations: 0 / 431 MB, free: 13.47 MB / 350.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.002822/0.3773, allocations: 1.125 MB / 432.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.522e-05/0.3773, allocations: 8.031 kB / 432.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.3775, allocations: 102.7 kB / 432.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.3778, allocations: 88.45 kB / 432.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.3789, allocations: 0.5227 MB / 432.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.3791, allocations: 71.58 kB / 432.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.3793, allocations: 72.3 kB / 433 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.3805, allocations: 0.6019 MB / 433.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/0.3805, allocations: 0 / 433.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.558e-05/0.3806, allocations: 23.94 kB / 433.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.3806, allocations: 16 kB / 433.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.3817, allocations: 0.5244 MB / 434.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003851/0.3856, allocations: 2.299 MB / 436.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.3867, allocations: 457.2 kB / 436.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000562/0.3872, allocations: 250.1 kB / 437.1 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.3873, allocations: 8.172 kB / 437.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.3873, allocations: 46.5 kB / 437.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.234e-06/0.3873, allocations: 0 / 437.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01268/0.4, allocations: 3.56 MB / 440.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4, allocations: 85.61 kB / 440.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008072/0.4008, allocations: 0.5371 MB / 441.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.28e-05/0.4009, allocations: 37.7 kB / 441.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.4012, allocations: 320.9 kB / 441.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.4014, allocations: 218.1 kB / 441.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.4016, allocations: 114.3 kB / 442 MB, free: 2.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.4018, allocations: 366.8 kB / 442.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.4023, allocations: 249.2 kB / 442.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006456/0.403, allocations: 352.4 kB / 443 MB, free: 1.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.4042, allocations: 0.598 MB / 443.6 MB, free: 408 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.4042, allocations: 8 kB / 443.6 MB, free: 400 kB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001623/0.4058, allocations: 0.7455 MB / 444.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.4059, allocations: 4 kB / 444.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4059, allocations: 4 kB / 444.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000187/0.406, allocations: 28.84 kB / 444.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.4068, allocations: 167.8 kB / 444.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.4082, allocations: 1.427 MB / 445.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000579/0.4087, allocations: 40.05 kB / 446 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.528e-05/0.4088, allocations: 27.98 kB / 446 MB, free: 13.79 MB / 366.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.0003304/0.4091, allocations: 193.7 kB / 446.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.4093, allocations: 67.58 kB / 446.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.4112, allocations: 0.8413 MB / 447.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.4112, allocations: 8.078 kB / 447.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4112, allocations: 4 kB / 447.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.4112, allocations: 11.97 kB / 447.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004074/0.4153, allocations: 1.83 MB / 449 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4153, allocations: 0 / 449 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.4158, allocations: 115.8 kB / 449.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002179/0.418, allocations: 472.3 kB / 449.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.418, allocations: 12 kB / 449.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/0.4233, allocations: 3.15 MB / 452.7 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4233, allocations: 0 / 452.7 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003046/0.4264, allocations: 1.371 MB / 454.1 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003605/0.4267, allocations: 216.7 kB / 454.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.126e-05/0.4268, allocations: 12 kB / 454.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005645/0.4274, allocations: 39.97 kB / 454.3 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.4275, allocations: 52.48 kB / 454.4 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.4276, allocations: 16 kB / 454.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005421/0.4281, allocations: 390.9 kB / 454.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4281, allocations: 3.938 kB / 454.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007538/0.4289, allocations: 191.9 kB / 455 MB, free: 4.574 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.003612/0.4325, allocations: 1.954 MB / 456.9 MB, free: 2.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.4344, allocations: 0.7052 MB / 457.6 MB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.4344, allocations: 0 / 457.6 MB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009864/0.4354, allocations: 0.4943 MB / 458.1 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007797/0.4362, allocations: 109.5 kB / 458.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.4495, allocations: 5.936 MB / 464.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008172/0.4503, allocations: 0.9004 MB / 465.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005677/0.4509, allocations: 76.78 kB / 465.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006223/0.4515, allocations: 239.3 kB / 465.4 MB, free: 9.922 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4515, allocations: 0 / 465.4 MB, free: 9.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05583/0.5073, allocations: 16 MB / 481.4 MB, free: 10.24 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.72, allocations: 10.19 kB / 481.4 MB, free: 10.23 MB / 398.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)