Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.001492/0.001492, allocations: 184.9 kB / 13.19 MB, free: 2.125 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.902/1.902, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001083/0.001083, allocations: 93.27 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2635/0.2635, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.861e-05/2.865e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.607/0.7137, allocations: 102.1 MB / 0.5618 GB, free: 1.551 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.7141, allocations: 91.94 kB / 0.5619 GB, free: 1.461 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06475/0.7788, allocations: 14.36 MB / 0.576 GB, free: 2.965 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.7789, allocations: 4 kB / 0.576 GB, free: 2.961 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.155e-05/0.779, allocations: 20 kB / 0.576 GB, free: 2.941 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002503/0.7815, allocations: 0.9601 MB / 0.5769 GB, free: 1.922 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.7815, allocations: 8.031 kB / 0.5769 GB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000229/0.7818, allocations: 110.5 kB / 0.577 GB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.782, allocations: 90.92 kB / 0.5771 GB, free: 1.707 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005218/0.7873, allocations: 1.172 MB / 0.5783 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.7875, allocations: 112.7 kB / 0.5784 GB, free: 376 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.7877, allocations: 64 kB / 0.5784 GB, free: 312 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002117/0.7898, allocations: 0.8168 MB / 0.5792 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.7899, allocations: 7.938 kB / 0.5792 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.79, allocations: 31.94 kB / 0.5793 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.7901, allocations: 16 kB / 0.5793 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.7916, allocations: 0.5555 MB / 0.5798 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006251/0.7979, allocations: 2.762 MB / 0.5825 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00203/0.8, allocations: 0.8074 MB / 0.5833 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006078/0.8006, allocations: 242.3 kB / 0.5835 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.8007, allocations: 4.328 kB / 0.5835 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007061/0.8014, allocations: 298.8 kB / 0.5838 GB, free: 10.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.836e-06/0.8014, allocations: 0 / 0.5838 GB, free: 10.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.003614/0.805, allocations: 1.372 MB / 0.5852 GB, free: 9.051 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.081e-05/0.8052, allocations: 118.8 kB / 0.5853 GB, free: 8.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008725/0.8061, allocations: 456.6 kB / 0.5857 GB, free: 8.453 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.741e-05/0.8062, allocations: 37.7 kB / 0.5858 GB, free: 8.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.8066, allocations: 393 kB / 0.5861 GB, free: 8.027 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.8068, allocations: 138.1 kB / 0.5863 GB, free: 7.891 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.8069, allocations: 12 kB / 0.5863 GB, free: 7.879 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.807, allocations: 342.8 kB / 0.5866 GB, free: 7.535 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005313/0.8076, allocations: 197.3 kB / 0.5868 GB, free: 7.344 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.8083, allocations: 359 kB / 0.5871 GB, free: 6.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006785/0.809, allocations: 299.1 kB / 0.5874 GB, free: 6.629 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.809, allocations: 0 / 0.5874 GB, free: 6.629 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001883/0.8109, allocations: 0.781 MB / 0.5882 GB, free: 5.809 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.648e-05/0.811, allocations: 49.69 kB / 0.5882 GB, free: 5.754 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.811, allocations: 8.594 kB / 0.5882 GB, free: 5.746 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003667/0.8114, allocations: 69.69 kB / 0.5883 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.8122, allocations: 119.7 kB / 0.5884 GB, free: 5.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.8154, allocations: 2.837 MB / 0.5912 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000748/0.8162, allocations: 39.88 kB / 0.5912 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.8164, allocations: 43.92 kB / 0.5913 GB, free: 2.371 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002552/0.8166, allocations: 158.5 kB / 0.5914 GB, free: 2.211 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.8168, allocations: 59.3 kB / 0.5915 GB, free: 2.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.8183, allocations: 0.5951 MB / 0.5921 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.864e-05/0.8184, allocations: 4 kB / 0.5921 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.8184, allocations: 0 / 0.5921 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/0.8184, allocations: 11.97 kB / 0.5921 GB, free: 1.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0032/0.8217, allocations: 1.433 MB / 0.5935 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.8217, allocations: 0 / 0.5935 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/0.8223, allocations: 67.89 kB / 0.5935 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003362/0.8226, allocations: 69.64 kB / 0.5936 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.14e-05/0.8227, allocations: 19.92 kB / 0.5936 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/0.8259, allocations: 2.825 MB / 0.5964 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.8259, allocations: 7.938 kB / 0.5964 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.8281, allocations: 0.9354 MB / 0.5973 GB, free: 11.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003854/0.8285, allocations: 168.4 kB / 0.5975 GB, free: 11.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.8287, allocations: 27.98 kB / 0.5975 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00072/0.8294, allocations: 47.94 kB / 0.5975 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.8295, allocations: 35.98 kB / 0.5976 GB, free: 11.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.8296, allocations: 27.92 kB / 0.5976 GB, free: 11.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006643/0.8303, allocations: 349.5 kB / 0.5979 GB, free: 11.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8303, allocations: 0 / 0.5979 GB, free: 11.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001009/0.8313, allocations: 152 kB / 0.5981 GB, free: 10.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002656/0.834, allocations: 1.721 MB / 0.5998 GB, free: 9.117 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.836, allocations: 0.8392 MB / 0.6006 GB, free: 8.234 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.836, allocations: 0 / 0.6006 GB, free: 8.234 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.837, allocations: 456.8 kB / 0.601 GB, free: 7.762 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.8382, allocations: 134.7 kB / 0.6011 GB, free: 7.633 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.8421, allocations: 1.355 MB / 0.6025 GB, free: 6.219 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/0.843, allocations: 0.9881 MB / 0.6034 GB, free: 5.203 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005295/0.8435, allocations: 227.4 kB / 0.6036 GB, free: 4.98 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8436, allocations: 0 / 0.6036 GB, free: 4.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.542/4.386, allocations: 16.24 MB / 0.6195 GB, free: 4.723 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)