Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001538/0.001542, allocations: 183.2 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.136/2.136, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 102.7 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2667/0.2667, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004622, allocations: 11.98 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 56.32 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4864/0.5959, allocations: 102.2 MB / 0.5676 GB, free: 13.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00032/0.5963, allocations: 90.11 kB / 0.5677 GB, free: 13.51 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06303/0.6593, allocations: 14.38 MB / 0.5818 GB, free: 1.145 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.6594, allocations: 0 / 0.5818 GB, free: 1.145 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.29e-05/0.6594, allocations: 16 kB / 0.5818 GB, free: 1.129 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002979/0.6624, allocations: 1.048 MB / 0.5828 GB, free: 72 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.6625, allocations: 8.031 kB / 0.5828 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003643/0.6629, allocations: 90.97 kB / 0.5829 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005083/0.668, allocations: 1.197 MB / 0.5841 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.6682, allocations: 114.5 kB / 0.5842 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.6684, allocations: 64.88 kB / 0.5842 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002539/0.671, allocations: 0.8721 MB / 0.5851 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.671, allocations: 0 / 0.5851 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.6711, allocations: 27.5 kB / 0.5851 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.429e-05/0.6712, allocations: 19.95 kB / 0.5851 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.6732, allocations: 0.6117 MB / 0.5857 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006031/0.6793, allocations: 2.744 MB / 0.5884 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/0.6823, allocations: 0.9132 MB / 0.5893 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.6824, allocations: 8.391 kB / 0.5893 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.6836, allocations: 356.1 kB / 0.5896 GB, free: 10.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.237e-06/0.6837, allocations: 0 / 0.5896 GB, free: 10.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.007014/0.6907, allocations: 1.968 MB / 0.5916 GB, free: 8.312 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.797e-05/0.6908, allocations: 114.8 kB / 0.5917 GB, free: 8.176 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008352/0.6917, allocations: 458 kB / 0.5921 GB, free: 7.809 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.532e-05/0.6918, allocations: 46.44 kB / 0.5922 GB, free: 7.766 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003392/0.6921, allocations: 385.3 kB / 0.5925 GB, free: 7.465 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.6923, allocations: 143.4 kB / 0.5927 GB, free: 7.344 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.6924, allocations: 14 kB / 0.5927 GB, free: 7.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.6926, allocations: 339.9 kB / 0.593 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.6931, allocations: 206.6 kB / 0.5932 GB, free: 6.871 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006653/0.6938, allocations: 363.2 kB / 0.5935 GB, free: 6.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.6945, allocations: 292.6 kB / 0.5938 GB, free: 6.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.6945, allocations: 4 kB / 0.5938 GB, free: 6.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001825/0.6963, allocations: 0.7914 MB / 0.5946 GB, free: 5.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/0.6964, allocations: 56.25 kB / 0.5947 GB, free: 5.617 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.6965, allocations: 11.94 kB / 0.5947 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.6968, allocations: 66.92 kB / 0.5947 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.6976, allocations: 111 kB / 0.5948 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.7007, allocations: 2.868 MB / 0.5976 GB, free: 2.445 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/0.7015, allocations: 39.06 kB / 0.5977 GB, free: 2.414 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.7017, allocations: 43.16 kB / 0.5977 GB, free: 2.379 MB / 394.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 () * Number of clocked 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.0006146/0.7023, allocations: 276.7 kB / 0.598 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.7024, allocations: 59.3 kB / 0.598 GB, free: 2.094 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002462/0.7049, allocations: 0.6918 MB / 0.5987 GB, free: 1.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.7049, allocations: 8 kB / 0.5987 GB, free: 1.512 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.705, allocations: 0 / 0.5987 GB, free: 1.512 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.705, allocations: 3.984 kB / 0.5987 GB, free: 1.508 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004119/0.7091, allocations: 1.534 MB / 0.6002 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.7092, allocations: 3.953 kB / 0.6002 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006081/0.7098, allocations: 70.83 kB / 0.6003 GB, free: 112 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.7101, allocations: 64.3 kB / 0.6004 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/0.7102, allocations: 15.17 kB / 0.6004 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.7131, allocations: 2.851 MB / 0.6032 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.7132, allocations: 4.031 kB / 0.6032 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.7168, allocations: 1.089 MB / 0.6042 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003854/0.7172, allocations: 169.6 kB / 0.6044 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.7174, allocations: 32.73 kB / 0.6044 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000723/0.7181, allocations: 49.94 kB / 0.6045 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.7183, allocations: 34.09 kB / 0.6045 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.7183, allocations: 15.17 kB / 0.6045 GB, free: 11.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006408/0.719, allocations: 356.4 kB / 0.6048 GB, free: 11.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.719, allocations: 0 / 0.6048 GB, free: 11.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009958/0.72, allocations: 154.9 kB / 0.605 GB, free: 11.43 MB / 410.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]) * Number of clocked states: 0 () * 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.0002607/0.7203, allocations: 138 kB / 0.6051 GB, free: 11.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.7227, allocations: 0.8844 MB / 0.606 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.7227, allocations: 1.375 kB / 0.606 GB, free: 10.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.7242, allocations: 0.5013 MB / 0.6065 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.7254, allocations: 136.3 kB / 0.6066 GB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.7297, allocations: 1.861 MB / 0.6084 GB, free: 8.207 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008047/0.7306, allocations: 0.9845 MB / 0.6094 GB, free: 7.223 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002804/0.7309, allocations: 47.12 kB / 0.6094 GB, free: 7.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/0.7309, allocations: 0 / 0.6094 GB, free: 7.18 MB / 410.7 MB Notification: Performance of Templates: time 0.02625/0.7572, allocations: 12.93 MB / 0.6221 GB, free: 10.35 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)