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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 111 kB / 17.06 MB, free: 5.965 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.002672/0.002672, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1912/0.1912, allocations: 37.99 MB / 309.2 MB, free: 5.945 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 64.47 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1256, allocations: 55.24 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008062/0.1338, allocations: 6.489 MB / 493.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004035/0.1378, allocations: 2.474 MB / 495.6 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005371/0.1384, allocations: 31.81 kB / 495.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.1397, allocations: 433.9 kB / 496 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001371/0.1411, allocations: 0.5912 MB / 496.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.1421, allocations: 491.1 kB / 497.1 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.144, allocations: 1.965 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.1452, allocations: 0.8454 MB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.1463, allocations: 0.7946 MB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001491/0.1478, allocations: 0.9663 MB / 0.4899 GB, free: 9.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004345/0.1483, allocations: 160 kB / 0.4901 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001624/0.1499, allocations: 0.6437 MB / 0.4907 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009958/0.1509, allocations: 0.6471 MB / 0.4913 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.152, allocations: 0.6769 MB / 0.492 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.1542, allocations: 2.041 MB / 0.494 GB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1543, allocations: 3.938 kB / 0.494 GB, free: 5.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1543, allocations: 0 / 0.494 GB, free: 5.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.005e-05/0.1543, allocations: 0 / 0.494 GB, free: 5.531 MB / 382.1 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.006001/0.1603, allocations: 1.904 MB / 0.4958 GB, free: 3.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.1604, allocations: 15.89 kB / 0.4959 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004665/0.1609, allocations: 168.4 kB / 0.496 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.1621, allocations: 159.6 kB / 0.4962 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002588/0.1647, allocations: 0.9635 MB / 0.4971 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006453/0.1653, allocations: 0.5065 MB / 0.4976 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003001/0.1656, allocations: 99.98 kB / 0.4977 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004286/0.1699, allocations: 2.019 MB / 0.4997 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.101e-05/0.17, allocations: 3.938 kB / 0.4997 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.1701, allocations: 39.98 kB / 0.4997 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002303/0.1704, allocations: 89.89 kB / 0.4998 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004721/0.1751, allocations: 2.24 MB / 0.502 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.1854, allocations: 5.667 MB / 0.5075 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00433/0.1898, allocations: 1.793 MB / 0.5093 GB, free: 5.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002419/0.1922, allocations: 1.16 MB / 0.5104 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-05/0.1923, allocations: 17 kB / 0.5104 GB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002708/0.195, allocations: 1.387 MB / 0.5118 GB, free: 2.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.516e-06/0.195, allocations: 0 / 0.5118 GB, free: 2.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01296/0.208, allocations: 5.63 MB / 0.5173 GB, free: 13.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.2081, allocations: 102.1 kB / 0.5174 GB, free: 13.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/0.2088, allocations: 0.4902 MB / 0.5178 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.2089, allocations: 53.7 kB / 0.5179 GB, free: 12.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.2093, allocations: 364.7 kB / 0.5182 GB, free: 12.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003957/0.2097, allocations: 414.1 kB / 0.5186 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004423/0.2101, allocations: 226.8 kB / 0.5189 GB, free: 11.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.2103, allocations: 394.7 kB / 0.5192 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00193/0.2122, allocations: 1.025 MB / 0.5202 GB, free: 10.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002056/0.2143, allocations: 1.176 MB / 0.5214 GB, free: 8.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003653/0.218, allocations: 2.043 MB / 0.5234 GB, free: 6.805 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.218, allocations: 0 / 0.5234 GB, free: 6.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01028/0.2283, allocations: 3.903 MB / 0.5272 GB, free: 2.883 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.645e-05/0.2284, allocations: 61.67 kB / 0.5272 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.2284, allocations: 0 / 0.5272 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005719/0.2342, allocations: 2.07 MB / 0.5293 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009345/0.2351, allocations: 187.7 kB / 0.5294 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2252/0.4604, allocations: 11.3 MB / 0.5405 GB, free: 48.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.4619, allocations: 166.3 kB / 0.5406 GB, free: 48.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/0.4621, allocations: 78.64 kB / 0.5407 GB, free: 48.66 MB / 414.1 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 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0006927/0.4628, allocations: 373.6 kB / 0.5411 GB, free: 48.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.4631, allocations: 80.53 kB / 0.5412 GB, free: 48.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005204/0.4683, allocations: 2.367 MB / 0.5435 GB, free: 47.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.873e-05/0.4684, allocations: 28.89 kB / 0.5435 GB, free: 47.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4684, allocations: 4.547 kB / 0.5435 GB, free: 47.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.4684, allocations: 11.31 kB / 0.5435 GB, free: 47.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007072/0.4755, allocations: 4.097 MB / 0.5475 GB, free: 46.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.4755, allocations: 6.016 kB / 0.5475 GB, free: 46.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009526/0.485, allocations: 2.019 MB / 0.5495 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.176e-05/0.4851, allocations: 3.969 kB / 0.5495 GB, free: 45.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001927/0.4853, allocations: 43.78 kB / 0.5495 GB, free: 45.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.786e-06/0.4853, allocations: 7.875 kB / 0.5495 GB, free: 45.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4853, allocations: 3.938 kB / 0.5495 GB, free: 45.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007054/0.4924, allocations: 3.862 MB / 0.5533 GB, free: 43.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005322/0.4929, allocations: 341.7 kB / 0.5536 GB, free: 43.3 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.4932, allocations: 86.78 kB / 0.5537 GB, free: 43.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.4945, allocations: 184.1 kB / 0.5539 GB, free: 43.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003354/0.4948, allocations: 195.8 kB / 0.5541 GB, free: 43.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.751e-05/0.4949, allocations: 42.75 kB / 0.5541 GB, free: 43.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003088/0.4953, allocations: 343.8 kB / 0.5545 GB, free: 42.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4953, allocations: 3.688 kB / 0.5545 GB, free: 42.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001031/0.4963, allocations: 354.3 kB / 0.5548 GB, free: 42.79 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006891/0.5032, allocations: 4.519 MB / 0.5592 GB, free: 38.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005603/0.5088, allocations: 2.989 MB / 0.5621 GB, free: 35.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5089, allocations: 8.25 kB / 0.5621 GB, free: 35.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00503/0.5139, allocations: 1.933 MB / 0.564 GB, free: 33.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.515, allocations: 193.2 kB / 0.5642 GB, free: 33.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02912/0.5441, allocations: 15.64 MB / 0.5795 GB, free: 17.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006523/0.5448, allocations: 1.144 MB / 0.5806 GB, free: 16.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009086/0.5457, allocations: 319.1 kB / 0.5809 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006101/0.5464, allocations: 343.3 kB / 0.5812 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5464, allocations: 0 / 0.5812 GB, free: 15.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06772/0.6141, allocations: 33.41 MB / 0.6139 GB, free: 13.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/13.09, allocations: 6.516 kB / 0.6139 GB, free: 13.93 MB / 446.1 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/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)