Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001572/0.001572, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.785/1.785, allocations: 194.4 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001734/0.001734, allocations: 120.6 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1623/0.1623, allocations: 37.94 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.825e-05, allocations: 0 / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3232, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4294/0.7527, allocations: 107.1 MB / 0.5378 GB, free: 91.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.753, allocations: 91.7 kB / 0.5379 GB, free: 91.54 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd - DAE generated: time 0.07445/0.8275, allocations: 27.98 MB / 0.5652 GB, free: 63.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.8275, allocations: 0 / 0.5652 GB, free: 63.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.884e-05/0.8276, allocations: 27.94 kB / 0.5653 GB, free: 63.8 MB / 378.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.003449/0.8311, allocations: 1.633 MB / 0.5669 GB, free: 62.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.8311, allocations: 12.03 kB / 0.5669 GB, free: 62.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006091/0.8317, allocations: 154.6 kB / 0.567 GB, free: 61.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004143/0.8359, allocations: 1.643 MB / 0.5686 GB, free: 60.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005107/0.8364, allocations: 494.3 kB / 0.5691 GB, free: 59.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.8366, allocations: 56 kB / 0.5692 GB, free: 59.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002195/0.8388, allocations: 1.628 MB / 0.5707 GB, free: 57.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.8408, allocations: 1.65 MB / 0.5724 GB, free: 56.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.973e-05/0.8409, allocations: 7.938 kB / 0.5724 GB, free: 56.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.841, allocations: 7.984 kB / 0.5724 GB, free: 56.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.8412, allocations: 81.95 kB / 0.5724 GB, free: 56.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00831/0.8495, allocations: 5.654 MB / 0.578 GB, free: 50.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.8513, allocations: 1.276 MB / 0.5792 GB, free: 49.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.8524, allocations: 0.9582 MB / 0.5802 GB, free: 48.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.231e-05/0.8525, allocations: 21.28 kB / 0.5802 GB, free: 48.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.8538, allocations: 1.153 MB / 0.5813 GB, free: 46.99 MB / 378.7 MB Notification: Performance of pre-optimization done (n=125): time 3.807e-06/0.8539, allocations: 0 / 0.5813 GB, free: 46.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.00621/0.8601, allocations: 4.196 MB / 0.5854 GB, free: 42.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.8601, allocations: 102.4 kB / 0.5855 GB, free: 42.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.8605, allocations: 369.1 kB / 0.5858 GB, free: 42.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-05/0.8606, allocations: 33.7 kB / 0.5859 GB, free: 42.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.8608, allocations: 368.5 kB / 0.5862 GB, free: 41.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.8611, allocations: 406 kB / 0.5866 GB, free: 41.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.8611, allocations: 8.031 kB / 0.5866 GB, free: 41.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.678e-05/0.8612, allocations: 390.7 kB / 0.587 GB, free: 41.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009614/0.8622, allocations: 0.8928 MB / 0.5879 GB, free: 40.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009984/0.8632, allocations: 1.049 MB / 0.5889 GB, free: 39.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.8646, allocations: 1.029 MB / 0.5899 GB, free: 38.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.8646, allocations: 4 kB / 0.5899 GB, free: 38.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.008238/0.8729, allocations: 3.839 MB / 0.5937 GB, free: 34.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.371e-05/0.873, allocations: 61.67 kB / 0.5937 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.873, allocations: 4 kB / 0.5937 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004112/0.8771, allocations: 1.672 MB / 0.5953 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007547/0.8779, allocations: 171.8 kB / 0.5955 GB, free: 32.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/0.8923, allocations: 10.41 MB / 0.6057 GB, free: 21.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.8939, allocations: 191.8 kB / 0.6059 GB, free: 21.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.894, allocations: 67.94 kB / 0.6059 GB, free: 21.32 MB / 378.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003704/0.8944, allocations: 150 kB / 0.6061 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002973/0.8974, allocations: 1.946 MB / 0.608 GB, free: 19.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.8976, allocations: 79.05 kB / 0.608 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.9006, allocations: 2.12 MB / 0.6101 GB, free: 16.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.89e-05/0.9007, allocations: 35.97 kB / 0.6102 GB, free: 16.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.9007, allocations: 3.953 kB / 0.6102 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.9007, allocations: 3.984 kB / 0.6102 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0051/0.9058, allocations: 3.768 MB / 0.6138 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.9058, allocations: 0 / 0.6138 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01097/0.9168, allocations: 2.826 MB / 0.6166 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001862/0.9171, allocations: 36.84 kB / 0.6166 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005287/0.9176, allocations: 27.91 kB / 0.6167 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000978/0.9186, allocations: 1.435 MB / 0.6181 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.9186, allocations: 0 / 0.6181 GB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00575/0.9244, allocations: 3.561 MB / 0.6215 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007157/0.9251, allocations: 348 kB / 0.6219 GB, free: 4.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003644/0.9255, allocations: 71.94 kB / 0.6219 GB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.9271, allocations: 227.7 kB / 0.6222 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.9275, allocations: 201 kB / 0.6223 GB, free: 4.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.9276, allocations: 39.97 kB / 0.6224 GB, free: 4.043 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000367/0.928, allocations: 274.9 kB / 0.6226 GB, free: 3.773 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.928, allocations: 0 / 0.6226 GB, free: 3.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001777/0.9298, allocations: 339.9 kB / 0.623 GB, free: 3.441 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005769/0.9356, allocations: 4.864 MB / 0.6277 GB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00493/0.9405, allocations: 2.687 MB / 0.6303 GB, free: 11.74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.9406, allocations: 4.25 kB / 0.6304 GB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005481/0.946, allocations: 2.084 MB / 0.6324 GB, free: 9.641 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.9471, allocations: 117.8 kB / 0.6325 GB, free: 9.527 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008452/0.9556, allocations: 3.149 MB / 0.6356 GB, free: 6.312 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.9568, allocations: 1.167 MB / 0.6367 GB, free: 5.117 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001325/0.9582, allocations: 306.3 kB / 0.637 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007694/0.959, allocations: 327.3 kB / 0.6373 GB, free: 4.492 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/0.959, allocations: 4 kB / 0.6373 GB, free: 4.488 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07052/1.03, allocations: 28.73 MB / 0.6654 GB, free: 7.719 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/1.03, allocations: 137.9 kB / 0.6655 GB, free: 7.527 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.707/3.737, allocations: 4.031 kB / 0.6655 GB, free: 7.523 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)