Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002235/0.002235, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.36/2.36, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003883/0.0003884, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 47.58 MB / 374.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.MultiPhase.Examples.Rectifier): time 0.009053/0.1234, allocations: 5.036 MB / 379.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004685/0.1281, allocations: 1.653 MB / 381.3 MB, free: 8.637 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000953/0.1291, allocations: 39.81 kB / 381.4 MB, free: 8.598 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006917/0.1299, allocations: 238.6 kB / 381.6 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001673/0.1315, allocations: 358.9 kB / 381.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008965/0.1325, allocations: 219.7 kB / 382.2 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002786/0.1353, allocations: 1.357 MB / 383.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002933/0.1382, allocations: 1.585 MB / 385.1 MB, free: 4.816 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.1398, allocations: 0.6967 MB / 385.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.142, allocations: 0.8596 MB / 386.7 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000545/0.1426, allocations: 124 kB / 386.8 MB, free: 3.133 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.1437, allocations: 231.8 kB / 387 MB, free: 2.906 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006841/0.1444, allocations: 486.5 kB / 387.5 MB, free: 2.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006375/0.145, allocations: 432.6 kB / 387.9 MB, free: 2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2872/0.4322, allocations: 2.873 MB / 390.8 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4323, allocations: 0 / 390.8 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.596e-06/0.4323, allocations: 2.062 kB / 390.8 MB, free: 11.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001355/0.4324, allocations: 0 / 390.8 MB, free: 11.81 MB / 282.7 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.007489/0.4399, allocations: 2.102 MB / 392.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.44, allocations: 9.188 kB / 392.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.4413, allocations: 301.2 kB / 393.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008463/0.4422, allocations: 228.8 kB / 393.4 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003708/0.4459, allocations: 1.145 MB / 394.6 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002204/0.4462, allocations: 163.8 kB / 394.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008838/0.4471, allocations: 203.6 kB / 394.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.4572, allocations: 2.584 MB / 397.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.335e-05/0.4573, allocations: 2.344 kB / 397.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003324/0.4576, allocations: 84.81 kB / 397.6 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001584/0.4578, allocations: 52.38 kB / 397.6 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008293/0.4661, allocations: 2.077 MB / 399.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02086/0.487, allocations: 7.46 MB / 407.2 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003364/0.4905, allocations: 2.349 MB / 409.5 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.4906, allocations: 10.62 kB / 409.5 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.4907, allocations: 43.69 kB / 409.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 4.609e-06/0.4907, allocations: 2.297 kB / 409.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of matching and sorting (n=97): time 0.01289/0.5036, allocations: 4.367 MB / 413.9 MB, free: 1.578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.5037, allocations: 62.66 kB / 414 MB, free: 1.512 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.5052, allocations: 0.8514 MB / 414.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.5055, allocations: 42.33 kB / 414.9 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.506, allocations: 0.8363 MB / 415.7 MB, free: 240 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003671/0.5064, allocations: 325 kB / 416 MB, free: 15.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.351e-05/0.5065, allocations: 19.94 kB / 416.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.5066, allocations: 349.7 kB / 416.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.508, allocations: 0.4904 MB / 416.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.5095, allocations: 0.6678 MB / 417.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.511, allocations: 0.5725 MB / 418.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.5111, allocations: 0 / 418.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.004408/0.5155, allocations: 1.576 MB / 419.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.5156, allocations: 15.94 kB / 419.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.5156, allocations: 4 kB / 419.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/0.5175, allocations: 461.8 kB / 420.2 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5189, allocations: 178.1 kB / 420.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/0.5335, allocations: 8.607 MB / 429 MB, free: 3.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.5347, allocations: 47.97 kB / 429 MB, free: 3.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.5348, allocations: 39.98 kB / 429.1 MB, free: 3.457 MB / 298.7 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 (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 initialization (88): * Single equations (assignments): 82 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001632/0.5365, allocations: 0.6377 MB / 429.7 MB, free: 2.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003944/0.5369, allocations: 106.9 kB / 429.8 MB, free: 2.715 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.5372, allocations: 137.9 kB / 429.9 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.782e-05/0.5373, allocations: 12 kB / 429.9 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.952e-05/0.5373, allocations: 0.5 kB / 429.9 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.5374, allocations: 3.984 kB / 429.9 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.5474, allocations: 3.512 MB / 433.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.5475, allocations: 4 kB / 433.5 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.5486, allocations: 134.8 kB / 433.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.5504, allocations: 450.3 kB / 434 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.5506, allocations: 28 kB / 434.1 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/0.5648, allocations: 8.525 MB / 442.6 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5648, allocations: 0 / 442.6 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006143/0.571, allocations: 2.357 MB / 444.9 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008513/0.5719, allocations: 275.8 kB / 445.2 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.5721, allocations: 19.98 kB / 445.2 MB, free: 2.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000804/0.5729, allocations: 48.66 kB / 445.3 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/0.5733, allocations: 80.88 kB / 445.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.245e-05/0.5734, allocations: 27.98 kB / 445.4 MB, free: 2.547 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001259/0.5747, allocations: 0.6005 MB / 446 MB, free: 1.949 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.5747, allocations: 0 / 446 MB, free: 1.949 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00222/0.5769, allocations: 388.6 kB / 446.4 MB, free: 1.57 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.006699/0.5836, allocations: 3.066 MB / 449.4 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004481/0.5882, allocations: 1.82 MB / 451.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.5882, allocations: 320 / 451.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003276/0.5915, allocations: 1.248 MB / 452.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/0.5946, allocations: 280.7 kB / 452.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03657/0.6312, allocations: 12.58 MB / 465.4 MB, free: 14.15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003069/0.6343, allocations: 1.722 MB / 467.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.6363, allocations: 0.6164 MB / 467.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of SimCode: time 1.693e-06/0.6363, allocations: 0 / 467.7 MB, free: 11.77 MB / 346.7 MB [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({supplyL.i[1], supplyL.inductor[2].i, supplyL.inductor[3].i})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({reactivePowerSensor.plugToPins_p.pin_p[1].v - starS.plug_p.pin[3].v, reactivePowerSensor.plugToPins_p.pin_p[2].v - starS.plug_p.pin[3].v, reactivePowerSensor.plugToPins_p.pin_p[3].v - starS.plug_p.pin[3].v})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({supplyL.inductor[1].i, supplyL.inductor[2].i, supplyL.inductor[3].i})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({reactivePowerSensor.plugToPins_p.pin_p[1].v - starS.plug_p.pin[3].v, reactivePowerSensor.plugToPins_p.pin_p[2].v - starS.plug_p.pin[3].v, reactivePowerSensor.plugToPins_p.pin_p[3].v - starS.plug_p.pin[3].v})[1] .