Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 43.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2947, allocations: 49.43 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.Rectifier): time 0.008002/0.3027, allocations: 6.235 MB / 406.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003844/0.3066, allocations: 1.636 MB / 408.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005322/0.3072, allocations: 47.81 kB / 408.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005766/0.3078, allocations: 305.6 kB / 408.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.309, allocations: 429.2 kB / 408.9 MB, free: 112 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006808/0.3097, allocations: 343.5 kB / 409.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002047/0.3117, allocations: 2.145 MB / 411.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002507/0.3142, allocations: 2.441 MB / 413.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.3155, allocations: 1.028 MB / 414.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.317, allocations: 1.222 MB / 416 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.3174, allocations: 288 kB / 416.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000611/0.318, allocations: 439.7 kB / 416.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005762/0.3186, allocations: 0.6896 MB / 417.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.3198, allocations: 1.237 MB / 418.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003416/0.3232, allocations: 3.639 MB / 422.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3233, allocations: 0 / 422.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3233, allocations: 0 / 422.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.176e-05/0.3234, allocations: 4 kB / 422.3 MB, free: 2.555 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: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.004667/0.328, allocations: 2.524 MB / 424.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3281, allocations: 8.031 kB / 424.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003339/0.3284, allocations: 307.7 kB / 425.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004097/0.3288, allocations: 243.4 kB / 425.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002136/0.331, allocations: 1.287 MB / 426.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3311, allocations: 156.5 kB / 426.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002952/0.3314, allocations: 203.9 kB / 427 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004542/0.336, allocations: 2.618 MB / 429.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.3361, allocations: 4 kB / 429.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.3363, allocations: 84 kB / 429.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.739e-05/0.3363, allocations: 52 kB / 429.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003614/0.34, allocations: 2.089 MB / 431.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01157/0.3516, allocations: 7.305 MB / 439.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.354, allocations: 2.352 MB / 441.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.3556, allocations: 0.9436 MB / 442.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.3556, allocations: 9 kB / 442.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.3557, allocations: 39.56 kB / 442.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.426e-06/0.3557, allocations: 0 / 442.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=97): time 0.007755/0.3635, allocations: 4.215 MB / 446.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.3635, allocations: 64.34 kB / 446.8 MB, free: 9.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.3647, allocations: 0.8641 MB / 447.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.837e-05/0.3647, allocations: 37.7 kB / 447.7 MB, free: 8.371 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005747/0.3653, allocations: 0.8553 MB / 448.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.3656, allocations: 345 kB / 448.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.3659, allocations: 178.6 kB / 449.1 MB, free: 6.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.366, allocations: 345.9 kB / 449.4 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007681/0.3668, allocations: 0.4898 MB / 449.9 MB, free: 6.148 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009021/0.3677, allocations: 0.6709 MB / 450.6 MB, free: 5.414 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00174/0.3695, allocations: 1.201 MB / 451.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3695, allocations: 0 / 451.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002777/0.3723, allocations: 1.632 MB / 453.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3723, allocations: 8 kB / 453.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/0.3723, allocations: 7.938 kB / 453.4 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.3735, allocations: 466.9 kB / 453.9 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006564/0.3741, allocations: 179.7 kB / 454 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009266/0.3834, allocations: 9.301 MB / 463.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.3842, allocations: 51.95 kB / 463.4 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.3843, allocations: 36 kB / 463.4 MB, free: 7.891 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode2.idealDiode[3].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[1].off,idealDiode1.idealDiode[3].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001275/0.3856, allocations: 0.6337 MB / 464.1 MB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.3859, allocations: 107.3 kB / 464.2 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003168/0.3863, allocations: 138 kB / 464.3 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-05/0.3863, allocations: 12 kB / 464.3 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.3863, allocations: 4 kB / 464.3 MB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3863, allocations: 7.922 kB / 464.3 MB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006258/0.3926, allocations: 3.485 MB / 467.8 MB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3926, allocations: 4.062 kB / 467.8 MB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005608/0.3932, allocations: 115.9 kB / 467.9 MB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009673/0.3942, allocations: 459.2 kB / 468.4 MB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/0.3943, allocations: 23.98 kB / 468.4 MB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008332/0.4026, allocations: 9.215 MB / 477.6 MB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4026, allocations: 4.031 kB / 477.6 MB, free: 9.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003529/0.4062, allocations: 2.309 MB / 479.9 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006194/0.4068, allocations: 284.4 kB / 480.2 MB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.407, allocations: 23.98 kB / 480.2 MB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005221/0.4075, allocations: 43.89 kB / 480.3 MB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.4078, allocations: 88.88 kB / 480.4 MB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/0.4078, allocations: 20 kB / 480.4 MB, free: 6.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008811/0.4087, allocations: 0.6044 MB / 481 MB, free: 5.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4087, allocations: 0 / 481 MB, free: 5.621 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001518/0.4102, allocations: 384 kB / 481.4 MB, free: 5.246 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004039/0.4143, allocations: 2.916 MB / 484.3 MB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.4174, allocations: 1.824 MB / 486.1 MB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4174, allocations: 4.125 kB / 486.1 MB, free: 416 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.4191, allocations: 1.242 MB / 487.3 MB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.4205, allocations: 301.7 kB / 487.6 MB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/0.4393, allocations: 12.16 MB / 499.8 MB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00179/0.4411, allocations: 1.714 MB / 0.4898 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005426/0.4417, allocations: 192.9 kB / 0.4899 GB, free: 440 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.4425, allocations: 0.6204 MB / 0.4905 GB, free: 15.8 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4425, allocations: 3.938 kB / 0.4905 GB, free: 15.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07638/0.5189, allocations: 33.61 MB / 0.5234 GB, free: 14.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.81, allocations: 7.453 kB / 0.5234 GB, free: 14.55 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.Rectifier.pipe 2>&1)