Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.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.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.433/1.433, allocations: 227.7 MB / 247.1 MB, free: 10.29 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.001949/0.001949, allocations: 60.09 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.115, allocations: 50.54 MB / 357.9 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance): time 0.008918/0.124, allocations: 6.63 MB / 364.5 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0053/0.1293, allocations: 2.25 MB / 366.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.1306, allocations: 43.81 kB / 366.8 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.1316, allocations: 377.4 kB / 367.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002688/0.1343, allocations: 0.8316 MB / 368 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.1354, allocations: 362.9 kB / 368.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004419/0.1398, allocations: 3.18 MB / 371.5 MB, free: 104 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1822/0.3221, allocations: 1.996 MB / 373.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.3239, allocations: 1.292 MB / 374.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.3258, allocations: 1.619 MB / 376.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005773/0.3264, allocations: 295.5 kB / 376.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.3275, allocations: 429.3 kB / 377.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007242/0.3282, allocations: 0.8453 MB / 378 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001419/0.3296, allocations: 1.468 MB / 379.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003986/0.3336, allocations: 4.075 MB / 383.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3336, allocations: 1.062 kB / 383.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3337, allocations: 0 / 383.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.888e-05/0.3338, allocations: 0.7031 kB / 383.5 MB, free: 7.09 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: 588 * Number of variables: 588 Notification: Performance of Generate backend data structure: time 0.008675/0.3424, allocations: 3.49 MB / 387 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3425, allocations: 9.656 kB / 387 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004437/0.3429, allocations: 335 kB / 387.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004298/0.3473, allocations: 0.7619 MB / 388.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.3506, allocations: 1.663 MB / 389.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.3508, allocations: 169.3 kB / 390 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005613/0.3513, allocations: 233.1 kB / 390.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005758/0.3571, allocations: 3.203 MB / 393.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.617e-05/0.3572, allocations: 1.438 kB / 393.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002445/0.3574, allocations: 95.97 kB / 393.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-05/0.3575, allocations: 71.61 kB / 393.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004472/0.362, allocations: 2.863 MB / 396.4 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01861/0.3806, allocations: 9.241 MB / 405.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00576/0.3864, allocations: 4.375 MB / 410 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.388, allocations: 0.812 MB / 410.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005522/0.3935, allocations: 3.158 MB / 414 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.3936, allocations: 45.7 kB / 414 MB, free: 15.44 MB / 334.1 MB Notification: Performance of pre-optimization done (n=92): time 2.985e-06/0.3936, allocations: 0 / 414 MB, free: 15.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=100): time 0.009279/0.4029, allocations: 4.195 MB / 418.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.098e-05/0.403, allocations: 117.9 kB / 418.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.4055, allocations: 1.621 MB / 420 MB, free: 9.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/0.4057, allocations: 45.7 kB / 420 MB, free: 9.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008954/0.4066, allocations: 1.11 MB / 421.1 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.4069, allocations: 359.3 kB / 421.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003975/0.4074, allocations: 243 kB / 421.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.4076, allocations: 357.9 kB / 422.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.4087, allocations: 0.631 MB / 422.7 MB, free: 6.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.4102, allocations: 1.021 MB / 423.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00265/0.4128, allocations: 1.701 MB / 425.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.4129, allocations: 4 kB / 425.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003705/0.4166, allocations: 1.945 MB / 427.4 MB, free: 1.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.4166, allocations: 15.92 kB / 427.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.4167, allocations: 12 kB / 427.4 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.417, allocations: 125.6 kB / 427.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.4184, allocations: 333.5 kB / 427.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.4218, allocations: 3.421 MB / 431.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.4231, allocations: 107.6 kB / 431.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.4232, allocations: 56 kB / 431.4 MB, free: 13.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001484/0.4247, allocations: 0.8304 MB / 432.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003191/0.425, allocations: 146.2 kB / 432.4 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002751/0.4278, allocations: 1.4 MB / 433.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.4278, allocations: 8 kB / 433.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.4278, allocations: 4 kB / 433.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.4278, allocations: 16.11 kB / 433.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004165/0.432, allocations: 2.448 MB / 436.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.432, allocations: 0 / 436.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.4329, allocations: 187.2 kB / 436.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007023/0.4336, allocations: 268.3 kB / 436.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.875e-05/0.4337, allocations: 35.97 kB / 436.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006694/0.4404, allocations: 6.248 MB / 443 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.4404, allocations: 8.016 kB / 443 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.4449, allocations: 2.548 MB / 445.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000661/0.4456, allocations: 251.1 kB / 445.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/0.4458, allocations: 31.94 kB / 445.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009208/0.4467, allocations: 91.89 kB / 445.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.447, allocations: 96.3 kB / 446 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.431e-05/0.4471, allocations: 31.98 kB / 446.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001753/0.4488, allocations: 1.132 MB / 447.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4488, allocations: 0 / 447.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001701/0.4505, allocations: 448 kB / 447.6 MB, free: 12.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (inductor_e.inductor[1].i,inductor_e.inductor[2].i,inductor_e.inductor[3].i,converter_m.singlePhaseElectroMagneticConverter[3].Phi.re,converter_m.singlePhaseElectroMagneticConverter[3].Phi.im,converter_s[1].Phi.re,converter_s[2].Phi.im,converter_s[3].Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,16,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005401/0.456, allocations: 3.168 MB / 450.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003892/0.4599, allocations: 1.898 MB / 452.7 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.4599, allocations: 8.734 kB / 452.7 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002209/0.4622, allocations: 1.163 MB / 453.9 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.4642, allocations: 290.1 kB / 454.1 MB, free: 6.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02999/0.4942, allocations: 18.97 MB / 473.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/0.4964, allocations: 2.105 MB / 475.2 MB, free: 200 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001463/0.4979, allocations: 459.6 kB / 475.7 MB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0012/0.4991, allocations: 0.8273 MB / 476.5 MB, free: 14.91 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4991, allocations: 3.656 kB / 476.5 MB, free: 14.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09157/0.5907, allocations: 37.5 MB / 0.5019 GB, free: 9.859 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.27, allocations: 4.297 kB / 0.502 GB, free: 9.852 MB / 430.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_PolyphaseInductance.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.PolyphaseInductance.pipe 2>&1)