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.002095/0.002095, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.3 MB / 213.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 90.34 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.258/0.258, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.926e-05, allocations: 4 kB / 410 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 56.32 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5147/0.6296, allocations: 101.5 MB / 0.5544 GB, free: 8.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.63, allocations: 85.73 kB / 0.5545 GB, free: 8.859 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05823/0.6882, allocations: 14.23 MB / 0.5684 GB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6883, allocations: 0 / 0.5684 GB, free: 13.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.132e-05/0.6884, allocations: 23.94 kB / 0.5684 GB, free: 13.55 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.002728/0.6911, allocations: 0.9475 MB / 0.5694 GB, free: 12.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.6912, allocations: 11.97 kB / 0.5694 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.6916, allocations: 90.92 kB / 0.5694 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005119/0.6967, allocations: 1.188 MB / 0.5706 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.6969, allocations: 92.7 kB / 0.5707 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001902/0.6971, allocations: 40 kB / 0.5707 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001514/0.6987, allocations: 0.5068 MB / 0.5712 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001748/0.7004, allocations: 0.7253 MB / 0.5719 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.7005, allocations: 0 / 0.5719 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.768e-05/0.7006, allocations: 7.953 kB / 0.5719 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.7006, allocations: 16 kB / 0.572 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006148/0.7068, allocations: 2.626 MB / 0.5745 GB, free: 8.102 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.7087, allocations: 0.7956 MB / 0.5753 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007294/0.7095, allocations: 254.3 kB / 0.5755 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.511e-05/0.7096, allocations: 16.23 kB / 0.5756 GB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000704/0.7103, allocations: 281.6 kB / 0.5758 GB, free: 6.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.867e-06/0.7103, allocations: 4 kB / 0.5758 GB, free: 6.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.003135/0.7135, allocations: 1.186 MB / 0.577 GB, free: 5.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/0.7136, allocations: 110 kB / 0.5771 GB, free: 5.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006824/0.7143, allocations: 373.8 kB / 0.5775 GB, free: 5.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.7144, allocations: 33.39 kB / 0.5775 GB, free: 5.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004186/0.7148, allocations: 401.2 kB / 0.5779 GB, free: 5.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.7151, allocations: 140 kB / 0.578 GB, free: 4.953 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.7151, allocations: 0 / 0.578 GB, free: 4.953 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.7153, allocations: 333.4 kB / 0.5783 GB, free: 4.629 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004485/0.7157, allocations: 187.2 kB / 0.5785 GB, free: 4.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.7164, allocations: 348 kB / 0.5788 GB, free: 4.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005426/0.7169, allocations: 227 kB / 0.579 GB, free: 4.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.7169, allocations: 4 kB / 0.5791 GB, free: 4.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001548/0.7185, allocations: 0.5873 MB / 0.5796 GB, free: 3.555 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.869e-05/0.7186, allocations: 49.19 kB / 0.5797 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.7186, allocations: 4 kB / 0.5797 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002832/0.7189, allocations: 52.33 kB / 0.5797 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008487/0.7198, allocations: 115.5 kB / 0.5798 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/0.7216, allocations: 1.412 MB / 0.5812 GB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000735/0.7224, allocations: 32.06 kB / 0.5812 GB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.7225, allocations: 38.92 kB / 0.5813 GB, free: 1.828 MB / 378.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 (68): * Single equations (assignments): 66 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000244/0.7228, allocations: 136 kB / 0.5814 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00114/0.7239, allocations: 436.9 kB / 0.5818 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.7241, allocations: 55.41 kB / 0.5819 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.7253, allocations: 465.4 kB / 0.5823 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.7254, allocations: 4 kB / 0.5823 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.7254, allocations: 3.953 kB / 0.5823 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.7254, allocations: 11.92 kB / 0.5823 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.7284, allocations: 1.224 MB / 0.5835 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.7285, allocations: 0 / 0.5835 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006403/0.7292, allocations: 63.91 kB / 0.5836 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00026/0.7294, allocations: 44.56 kB / 0.5836 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.239e-05/0.7295, allocations: 15.17 kB / 0.5837 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001711/0.7312, allocations: 1.404 MB / 0.585 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.7313, allocations: 4.062 kB / 0.585 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.7331, allocations: 0.7934 MB / 0.5858 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004024/0.7335, allocations: 164.3 kB / 0.586 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.7337, allocations: 30.69 kB / 0.586 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007318/0.7344, allocations: 39.94 kB / 0.586 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.7346, allocations: 23.12 kB / 0.5861 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.7346, allocations: 23.86 kB / 0.5861 GB, free: 13.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004805/0.7351, allocations: 276.2 kB / 0.5863 GB, free: 13.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7351, allocations: 0 / 0.5863 GB, free: 13.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009693/0.7361, allocations: 136 kB / 0.5865 GB, free: 13.05 MB / 394.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 (44): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002332/0.7385, allocations: 1.575 MB / 0.588 GB, free: 11.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.7401, allocations: 0.6723 MB / 0.5887 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.81e-06/0.7402, allocations: 0 / 0.5887 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000796/0.741, allocations: 318.8 kB / 0.589 GB, free: 10.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.7421, allocations: 108.6 kB / 0.5891 GB, free: 10.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003901/0.7461, allocations: 1.295 MB / 0.5903 GB, free: 9.512 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008324/0.7469, allocations: 0.9866 MB / 0.5913 GB, free: 8.527 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.7475, allocations: 232.7 kB / 0.5915 GB, free: 8.465 MB / 394.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7475, allocations: 0 / 0.5915 GB, free: 8.465 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.138/3.886, allocations: 13.31 MB / 0.6045 GB, free: 11.29 MB / 410.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)