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.001053/0.001053, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001271/0.001271, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.352/1.352, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 50.23 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08761, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.Rectifier): time 0.007104/0.09476, allocations: 6.218 MB / 356.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003703/0.09849, allocations: 1.647 MB / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.09966, allocations: 43.81 kB / 358.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009194/0.1006, allocations: 293.6 kB / 358.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001699/0.1023, allocations: 433.2 kB / 358.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007963/0.1032, allocations: 339.5 kB / 359.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002286/0.1055, allocations: 2.125 MB / 361.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002573/0.108, allocations: 2.446 MB / 363.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.1093, allocations: 1.02 MB / 364.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001543/0.1109, allocations: 1.218 MB / 365.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003516/0.1112, allocations: 292 kB / 366.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006642/0.1119, allocations: 427.7 kB / 366.6 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005262/0.1124, allocations: 0.7052 MB / 367.3 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.1136, allocations: 1.233 MB / 368.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1501/0.2636, allocations: 3.575 MB / 372.1 MB, free: 16.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.2637, allocations: 1.031 kB / 372.1 MB, free: 16.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2637, allocations: 0 / 372.1 MB, free: 16.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.233e-05/0.2638, allocations: 0.8438 kB / 372.1 MB, free: 16.13 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: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.005342/0.2691, allocations: 2.477 MB / 374.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.2692, allocations: 9.719 kB / 374.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003996/0.2696, allocations: 298.4 kB / 374.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004765/0.2701, allocations: 230.4 kB / 375.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/0.2722, allocations: 1.243 MB / 376.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.354e-05/0.2723, allocations: 154.9 kB / 376.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002806/0.2726, allocations: 204.2 kB / 376.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004371/0.2769, allocations: 2.619 MB / 379.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.8e-05/0.277, allocations: 0 / 379.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.2772, allocations: 86.03 kB / 379.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-05/0.2773, allocations: 53.25 kB / 379.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003336/0.2806, allocations: 2.083 MB / 381.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009794/0.2905, allocations: 7.401 MB / 389 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.2923, allocations: 2.347 MB / 391.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/0.2936, allocations: 0.9287 MB / 392.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/0.2937, allocations: 10.75 kB / 392.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.2937, allocations: 54.14 kB / 392.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 3.386e-06/0.2937, allocations: 0 / 392.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=97): time 0.00718/0.3009, allocations: 4.174 MB / 396.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.3009, allocations: 60.28 kB / 396.6 MB, free: 3.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009296/0.3019, allocations: 0.8672 MB / 397.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/0.3019, allocations: 41.58 kB / 397.5 MB, free: 3.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.3023, allocations: 0.8319 MB / 398.3 MB, free: 2.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.3024, allocations: 320.5 kB / 398.6 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.3026, allocations: 182.8 kB / 398.8 MB, free: 2.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.3027, allocations: 349.4 kB / 399.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006064/0.3033, allocations: 0.4886 MB / 399.6 MB, free: 1.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000673/0.304, allocations: 0.6649 MB / 400.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.3053, allocations: 1.206 MB / 401.5 MB, free: 96 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3053, allocations: 4 kB / 401.5 MB, free: 92 kB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002485/0.3078, allocations: 1.619 MB / 403.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3079, allocations: 8 kB / 403.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.3079, allocations: 4 kB / 403.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/0.3089, allocations: 474.1 kB / 403.6 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006547/0.3096, allocations: 178 kB / 403.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/0.3182, allocations: 9.301 MB / 413.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/0.319, allocations: 47.95 kB / 413.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-05/0.3191, allocations: 39.94 kB / 413.1 MB, free: 3.957 MB / 318.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.001034/0.3202, allocations: 0.6374 MB / 413.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.3204, allocations: 98.78 kB / 413.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.3207, allocations: 138 kB / 414 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/0.3207, allocations: 8 kB / 414 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.3207, allocations: 4 kB / 414 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.3207, allocations: 3.984 kB / 414 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005408/0.3261, allocations: 3.498 MB / 417.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3262, allocations: 0 / 417.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.3267, allocations: 125.7 kB / 417.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009844/0.3277, allocations: 452.8 kB / 418.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-05/0.3278, allocations: 22.42 kB / 418.1 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008476/0.3363, allocations: 9.215 MB / 427.3 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3363, allocations: 0 / 427.3 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.3399, allocations: 2.305 MB / 429.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005908/0.3405, allocations: 275.8 kB / 429.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002315/0.3407, allocations: 23.98 kB / 429.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.3413, allocations: 43.95 kB / 430 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3415, allocations: 95.53 kB / 430.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.466e-05/0.3416, allocations: 20 kB / 430.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008273/0.3424, allocations: 0.6122 MB / 430.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3424, allocations: 0 / 430.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001644/0.3441, allocations: 376 kB / 431.1 MB, free: 1.457 MB / 334.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.003658/0.3477, allocations: 2.915 MB / 434 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003239/0.351, allocations: 2.098 MB / 436.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.351, allocations: 0 / 436.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.3528, allocations: 1.237 MB / 437.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.3544, allocations: 310.7 kB / 437.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/0.3734, allocations: 12.69 MB / 450.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.3753, allocations: 1.722 MB / 452 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005759/0.3759, allocations: 188.9 kB / 452.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007752/0.3766, allocations: 0.6164 MB / 452.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3767, allocations: 0 / 452.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06612/0.4428, allocations: 32.88 MB / 485.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.29, allocations: 6.516 kB / 485.7 MB, free: 10.77 MB / 398.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)