Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001972/0.001972, allocations: 185.7 kB / 8.137 MB, free: 2.184 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.287/1.287, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009692/0.0009694, allocations: 97.42 kB / 261.8 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2142/0.2142, allocations: 37.97 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2616/0.4759, allocations: 62.45 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.5893, allocations: 56.3 MB / 466.4 MB, free: 6.379 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3333/0.9227, allocations: 101.3 MB / 0.5545 GB, free: 9.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.9231, allocations: 87.95 kB / 0.5545 GB, free: 9.051 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.05019/0.9733, allocations: 16.44 MB / 0.5706 GB, free: 8.383 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.9734, allocations: 19.98 kB / 0.5706 GB, free: 8.363 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004155/0.9738, allocations: 79.16 kB / 0.5707 GB, free: 8.285 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003966/0.9778, allocations: 1.234 MB / 0.5719 GB, free: 7.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005206/0.9783, allocations: 330.8 kB / 0.5722 GB, free: 6.637 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.9786, allocations: 40 kB / 0.5722 GB, free: 6.598 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001671/0.9802, allocations: 0.8225 MB / 0.573 GB, free: 5.773 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001729/0.982, allocations: 0.8388 MB / 0.5739 GB, free: 4.895 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.982, allocations: 4 kB / 0.5739 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.457e-05/0.9821, allocations: 3.984 kB / 0.5739 GB, free: 4.887 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.9821, allocations: 19.84 kB / 0.5739 GB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00686/0.989, allocations: 3.195 MB / 0.577 GB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009754/0.9901, allocations: 0.5468 MB / 0.5775 GB, free: 1.023 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/0.9907, allocations: 394.8 kB / 0.5779 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.9908, allocations: 8.438 kB / 0.5779 GB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007044/0.9915, allocations: 473 kB / 0.5784 GB, free: 140 kB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.488e-06/0.9915, allocations: 0 / 0.5784 GB, free: 140 kB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00128/0.9928, allocations: 0.6326 MB / 0.579 GB, free: 15.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.9929, allocations: 144.6 kB / 0.5791 GB, free: 15.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004035/0.9933, allocations: 286.6 kB / 0.5794 GB, free: 15.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.303e-05/0.9934, allocations: 29.7 kB / 0.5794 GB, free: 15.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.9937, allocations: 256.1 kB / 0.5797 GB, free: 14.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.9938, allocations: 153.8 kB / 0.5798 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.112e-05/0.9939, allocations: 4 kB / 0.5798 GB, free: 14.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.9941, allocations: 354.8 kB / 0.5802 GB, free: 14.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.9946, allocations: 333.2 kB / 0.5805 GB, free: 13.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/0.9951, allocations: 436.8 kB / 0.5809 GB, free: 13.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004886/0.9956, allocations: 309.2 kB / 0.5812 GB, free: 13.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.9957, allocations: 0 / 0.5812 GB, free: 13.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001252/0.9969, allocations: 0.7847 MB / 0.582 GB, free: 12.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.9969, allocations: 5.562 kB / 0.582 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.997, allocations: 7.984 kB / 0.582 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.997, allocations: 4 kB / 0.582 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006828/1.004, allocations: 1.776 MB / 0.5837 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006039/1.01, allocations: 4.098 MB / 0.5877 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/1.011, allocations: 131.4 kB / 0.5878 GB, free: 6.113 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/1.011, allocations: 43.92 kB / 0.5879 GB, free: 6.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000376/1.012, allocations: 130.5 kB / 0.588 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/1.012, allocations: 47.38 kB / 0.5881 GB, free: 5.887 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/1.014, allocations: 0.6715 MB / 0.5887 GB, free: 5.211 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/1.014, allocations: 11.98 kB / 0.5887 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/1.014, allocations: 4 kB / 0.5887 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/1.014, allocations: 3.938 kB / 0.5887 GB, free: 5.191 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/1.017, allocations: 1.754 MB / 0.5904 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/1.017, allocations: 4.031 kB / 0.5904 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007911/1.025, allocations: 2.057 MB / 0.5925 GB, free: 1.301 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.718e-05/1.025, allocations: 4 kB / 0.5925 GB, free: 1.297 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001314/1.025, allocations: 11.98 kB / 0.5925 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/1.025, allocations: 4 kB / 0.5925 GB, free: 1.281 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/1.025, allocations: 3.906 kB / 0.5925 GB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002036/1.027, allocations: 1.345 MB / 0.5938 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00261/1.03, allocations: 2.213 MB / 0.596 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/1.03, allocations: 200.3 kB / 0.5961 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.03, allocations: 27.98 kB / 0.5962 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008329/1.031, allocations: 127.9 kB / 0.5963 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/1.032, allocations: 71.8 kB / 0.5964 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/1.032, allocations: 19.98 kB / 0.5964 GB, free: 13.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0002929/1.032, allocations: 216.6 kB / 0.5966 GB, free: 12.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001426/1.033, allocations: 171.5 kB / 0.5968 GB, free: 12.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000354/1.034, allocations: 140 kB / 0.5969 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/1.044, allocations: 3.13 MB / 0.5999 GB, free: 9.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.044, allocations: 4.062 kB / 0.5999 GB, free: 9.426 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003629/1.047, allocations: 1.074 MB / 0.601 GB, free: 8.352 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/1.048, allocations: 85.22 kB / 0.6011 GB, free: 8.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004098/1.052, allocations: 1.306 MB / 0.6024 GB, free: 6.922 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009673/1.053, allocations: 0.9834 MB / 0.6033 GB, free: 5.91 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/1.053, allocations: 0 / 0.6033 GB, free: 5.91 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)