Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001576/0.001576, allocations: 183.2 kB / 8.132 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.001042/0.001042, allocations: 87.23 kB / 261.8 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2254/0.2254, allocations: 37.98 MB / 347.7 MB, free: 7.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2689/0.4944, allocations: 62.43 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.6281, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/1.049, allocations: 101.4 MB / 0.5545 GB, free: 9.152 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/1.05, allocations: 91.94 kB / 0.5546 GB, free: 9.062 MB / 394.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.04971/1.099, allocations: 14.92 MB / 0.5692 GB, free: 9.949 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/1.099, allocations: 12 kB / 0.5692 GB, free: 9.938 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004232/1.1, allocations: 90.95 kB / 0.5693 GB, free: 9.848 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004565/1.104, allocations: 1.184 MB / 0.5705 GB, free: 8.617 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/1.105, allocations: 88.72 kB / 0.5705 GB, free: 8.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003012/1.105, allocations: 47.89 kB / 0.5706 GB, free: 8.473 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001496/1.107, allocations: 0.518 MB / 0.5711 GB, free: 7.953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/1.108, allocations: 0.7474 MB / 0.5718 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/1.108, allocations: 4 kB / 0.5718 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.34e-05/1.108, allocations: 0 / 0.5718 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/1.108, allocations: 16 kB / 0.5718 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005084/1.113, allocations: 2.627 MB / 0.5744 GB, free: 4.418 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006594/1.114, allocations: 388.1 kB / 0.5748 GB, free: 4.023 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/1.114, allocations: 255 kB / 0.575 GB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/1.114, allocations: 4.328 kB / 0.575 GB, free: 3.766 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/1.115, allocations: 282.8 kB / 0.5753 GB, free: 3.469 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 3.527e-06/1.115, allocations: 0 / 0.5753 GB, free: 3.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.002652/1.118, allocations: 1.31 MB / 0.5766 GB, free: 2.078 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/1.118, allocations: 114.8 kB / 0.5767 GB, free: 1.941 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006115/1.118, allocations: 368.9 kB / 0.577 GB, free: 1.582 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/1.118, allocations: 29.7 kB / 0.5771 GB, free: 1.547 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/1.119, allocations: 315.5 kB / 0.5774 GB, free: 1.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/1.119, allocations: 138.2 kB / 0.5775 GB, free: 1.094 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/1.119, allocations: 0 / 0.5775 GB, free: 1.094 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/1.119, allocations: 366.7 kB / 0.5778 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/1.119, allocations: 197.2 kB / 0.578 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/1.12, allocations: 365.3 kB / 0.5784 GB, free: 116 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/1.12, allocations: 248.6 kB / 0.5786 GB, free: 15.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/1.12, allocations: 0 / 0.5786 GB, free: 15.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001327/1.122, allocations: 0.7355 MB / 0.5793 GB, free: 15.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/1.122, allocations: 7.984 kB / 0.5793 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/1.122, allocations: 15.98 kB / 0.5794 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003311/1.122, allocations: 62.06 kB / 0.5794 GB, free: 15.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/1.122, allocations: 111.8 kB / 0.5795 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002305/1.125, allocations: 2.709 MB / 0.5822 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005067/1.125, allocations: 23.89 kB / 0.5822 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.776e-05/1.125, allocations: 47.91 kB / 0.5822 GB, free: 11.89 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.0002193/1.126, allocations: 124.9 kB / 0.5824 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.258e-05/1.126, allocations: 51.34 kB / 0.5824 GB, free: 11.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009233/1.127, allocations: 0.5671 MB / 0.583 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/1.127, allocations: 4 kB / 0.583 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/1.127, allocations: 0 / 0.583 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/1.127, allocations: 7.984 kB / 0.583 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/1.128, allocations: 1.275 MB / 0.5842 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.128, allocations: 0 / 0.5842 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/1.129, allocations: 67.91 kB / 0.5843 GB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002134/1.129, allocations: 69.66 kB / 0.5843 GB, free: 9.609 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/1.129, allocations: 15.98 kB / 0.5844 GB, free: 9.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002214/1.131, allocations: 2.699 MB / 0.587 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/1.131, allocations: 4.031 kB / 0.587 GB, free: 6.66 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001322/1.133, allocations: 0.9238 MB / 0.5879 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001633/1.134, allocations: 1.547 MB / 0.5894 GB, free: 4.047 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/1.135, allocations: 160.5 kB / 0.5896 GB, free: 3.871 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/1.135, allocations: 27.89 kB / 0.5896 GB, free: 3.844 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/1.135, allocations: 39.95 kB / 0.5896 GB, free: 3.805 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.26e-05/1.135, allocations: 27.95 kB / 0.5897 GB, free: 3.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/1.135, allocations: 15.98 kB / 0.5897 GB, free: 3.762 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003681/1.136, allocations: 275.2 kB / 0.5899 GB, free: 3.492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001309/1.137, allocations: 128 kB / 0.5901 GB, free: 3.367 MB / 426.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.0002533/1.137, allocations: 137.7 kB / 0.5902 GB, free: 3.227 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001213/1.139, allocations: 0.7337 MB / 0.5909 GB, free: 2.469 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.139, allocations: 0 / 0.5909 GB, free: 2.469 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006038/1.139, allocations: 432.1 kB / 0.5913 GB, free: 2.027 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006996/1.14, allocations: 109.8 kB / 0.5914 GB, free: 1.918 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/1.143, allocations: 1.098 MB / 0.5925 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000896/1.144, allocations: 1.042 MB / 0.5935 GB, free: 15.71 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/1.144, allocations: 0 / 0.5935 GB, free: 15.71 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)