Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",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.0008469/0.000847, allocations: 178.8 kB / 16.08 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0007515/0.0007516, allocations: 85 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 15.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2704, allocations: 56.33 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006678/0.2771, allocations: 6.741 MB / 486.5 MB, free: 4.707 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.2819, allocations: 2.65 MB / 489.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005846/0.2825, allocations: 44.72 kB / 489.2 MB, free: 2.836 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005401/0.2831, allocations: 170.8 kB / 489.3 MB, free: 2.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001429/0.2845, allocations: 0.6099 MB / 490 MB, free: 2.449 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.2858, allocations: 451 kB / 490.4 MB, free: 2.258 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.2882, allocations: 2.014 MB / 492.4 MB, free: 1.527 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001385/0.2896, allocations: 0.9399 MB / 493.3 MB, free: 1.016 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.2908, allocations: 0.6316 MB / 494 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.2922, allocations: 0.9214 MB / 494.9 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.2924, allocations: 75.98 kB / 495 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.2937, allocations: 0.6096 MB / 495.6 MB, free: 424 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006864/0.2944, allocations: 0.5531 MB / 496.1 MB, free: 272 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008228/0.2952, allocations: 0.5744 MB / 496.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001794/0.297, allocations: 1.538 MB / 498.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2971, allocations: 0 / 498.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2971, allocations: 0 / 498.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.2971, allocations: 1.188 kB / 498.3 MB, free: 15.07 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004566/0.3017, allocations: 1.714 MB / 500 MB, free: 13.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3017, allocations: 8.75 kB / 500 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002618/0.302, allocations: 162.7 kB / 0.4884 GB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007117/0.3027, allocations: 161 kB / 0.4886 GB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.3049, allocations: 0.9392 MB / 0.4895 GB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006494/0.3055, allocations: 0.526 MB / 0.49 GB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/0.3058, allocations: 92.08 kB / 0.4901 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004401/0.3102, allocations: 2.11 MB / 0.4921 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/0.3102, allocations: 6.219 kB / 0.4922 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.3104, allocations: 31.31 kB / 0.4922 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.3106, allocations: 97.38 kB / 0.4923 GB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005227/0.3159, allocations: 2.407 MB / 0.4946 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009586/0.3255, allocations: 5.763 MB / 0.5003 GB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00466/0.3301, allocations: 1.953 MB / 0.5022 GB, free: 3.492 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002654/0.3328, allocations: 1.242 MB / 0.5034 GB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.956e-05/0.3329, allocations: 20.97 kB / 0.5034 GB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003004/0.336, allocations: 1.485 MB / 0.5048 GB, free: 0.7188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 4.549e-06/0.336, allocations: 0 / 0.5048 GB, free: 0.7188 MB / 330.7 MB Notification: Performance of matching and sorting (n=124): time 0.01429/0.3503, allocations: 6.11 MB / 0.5108 GB, free: 10.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.3504, allocations: 106 kB / 0.5109 GB, free: 10.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006809/0.3511, allocations: 493.9 kB / 0.5114 GB, free: 9.938 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.3512, allocations: 57.69 kB / 0.5114 GB, free: 9.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003417/0.3516, allocations: 364.7 kB / 0.5118 GB, free: 9.512 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004699/0.3521, allocations: 418 kB / 0.5122 GB, free: 9.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-05/0.3522, allocations: 20 kB / 0.5122 GB, free: 9.078 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.3524, allocations: 394.7 kB / 0.5126 GB, free: 8.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002124/0.3545, allocations: 1.103 MB / 0.5137 GB, free: 7.582 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/0.3567, allocations: 1.243 MB / 0.5149 GB, free: 6.301 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004188/0.3609, allocations: 2.18 MB / 0.517 GB, free: 4.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.361, allocations: 8 kB / 0.517 GB, free: 4.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01165/0.3726, allocations: 4.391 MB / 0.5213 GB, free: 15.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.3728, allocations: 64.33 kB / 0.5214 GB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.3728, allocations: 12.23 kB / 0.5214 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0062/0.379, allocations: 2.221 MB / 0.5235 GB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.3801, allocations: 191.6 kB / 0.5237 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02565/0.4058, allocations: 11.64 MB / 0.5351 GB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4074, allocations: 203.8 kB / 0.5353 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003523/0.4078, allocations: 75.92 kB / 0.5354 GB, free: 1.117 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.0009889/0.4088, allocations: 373.5 kB / 0.5357 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003196/0.4091, allocations: 90.98 kB / 0.5358 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00603/0.4152, allocations: 2.552 MB / 0.5383 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.525e-05/0.4152, allocations: 31.98 kB / 0.5383 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4153, allocations: 0 / 0.5383 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.4153, allocations: 3.984 kB / 0.5383 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008869/0.4241, allocations: 4.301 MB / 0.5425 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.4242, allocations: 4.062 kB / 0.5425 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0118/0.436, allocations: 2.861 MB / 0.5453 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.755e-05/0.4361, allocations: 4 kB / 0.5453 GB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003519/0.4364, allocations: 35.97 kB / 0.5454 GB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.589e-05/0.4364, allocations: 15.92 kB / 0.5454 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.4365, allocations: 3.938 kB / 0.5454 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009222/0.4457, allocations: 4.142 MB / 0.5494 GB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008091/0.4465, allocations: 340 kB / 0.5497 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/0.4469, allocations: 87.92 kB / 0.5498 GB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.4484, allocations: 239.7 kB / 0.5501 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/0.449, allocations: 192.6 kB / 0.5502 GB, free: 1.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.4491, allocations: 43.97 kB / 0.5503 GB, free: 1.652 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004653/0.4496, allocations: 342.8 kB / 0.5506 GB, free: 1.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4496, allocations: 0 / 0.5506 GB, free: 1.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001491/0.4511, allocations: 351.9 kB / 0.5509 GB, free: 0.9727 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009243/0.4603, allocations: 4.82 MB / 0.5557 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006806/0.4672, allocations: 3.135 MB / 0.5587 GB, free: 8.938 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4672, allocations: 0 / 0.5587 GB, free: 8.938 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006348/0.4736, allocations: 2.239 MB / 0.5609 GB, free: 6.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.475, allocations: 174.7 kB / 0.5611 GB, free: 6.527 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.5015, allocations: 11.6 MB / 0.5724 GB, free: 10.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.5026, allocations: 1.144 MB / 0.5735 GB, free: 9.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.5038, allocations: 343.3 kB / 0.5738 GB, free: 9.254 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5038, allocations: 0 / 0.5738 GB, free: 9.254 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.315/5.819, allocations: 19.91 MB / 0.5933 GB, free: 5.289 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)