Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",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.00112/0.00112, allocations: 185.7 kB / 8.137 MB, free: 2.219 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.488/1.488, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009816/0.0009817, allocations: 95.83 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.2302/0.2302, allocations: 37.97 MB / 347.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.274/0.5042, allocations: 62.43 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.6135, allocations: 56.32 MB / 466.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.9251, allocations: 97.46 MB / 0.5507 GB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.9255, allocations: 93.03 kB / 0.5508 GB, free: 12.95 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.04894/0.9745, allocations: 16.62 MB / 0.567 GB, free: 12.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.9745, allocations: 8 kB / 0.567 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002642/0.9748, allocations: 71.16 kB / 0.5671 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003374/0.9782, allocations: 1.166 MB / 0.5682 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.9784, allocations: 92.7 kB / 0.5683 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.9785, allocations: 36 kB / 0.5683 GB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001052/0.9796, allocations: 0.5023 MB / 0.5688 GB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.9807, allocations: 0.6329 MB / 0.5694 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.9807, allocations: 7.938 kB / 0.5694 GB, free: 9.492 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.386e-05/0.9808, allocations: 0 / 0.5694 GB, free: 9.492 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/0.9808, allocations: 16 kB / 0.5695 GB, free: 9.477 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.9844, allocations: 2.384 MB / 0.5718 GB, free: 7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007077/0.9852, allocations: 371.6 kB / 0.5721 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.9855, allocations: 175.7 kB / 0.5723 GB, free: 6.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.9856, allocations: 4.281 kB / 0.5723 GB, free: 6.426 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/0.9859, allocations: 227.4 kB / 0.5725 GB, free: 6.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=36): time 3.968e-06/0.986, allocations: 0 / 0.5725 GB, free: 6.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001197/0.9872, allocations: 395.7 kB / 0.5729 GB, free: 5.785 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.766e-05/0.9873, allocations: 136.5 kB / 0.573 GB, free: 5.621 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004959/0.9878, allocations: 278 kB / 0.5733 GB, free: 5.352 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.9878, allocations: 29.7 kB / 0.5733 GB, free: 5.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.9881, allocations: 279.8 kB / 0.5736 GB, free: 5.035 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.9883, allocations: 110.4 kB / 0.5737 GB, free: 4.926 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.018e-05/0.9883, allocations: 0 / 0.5737 GB, free: 4.926 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.9885, allocations: 358.7 kB / 0.574 GB, free: 4.566 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.9887, allocations: 104.9 kB / 0.5741 GB, free: 4.465 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.989, allocations: 229.1 kB / 0.5744 GB, free: 4.195 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.9892, allocations: 144.8 kB / 0.5745 GB, free: 4.051 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.9893, allocations: 0 / 0.5745 GB, free: 4.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001064/0.9903, allocations: 484.5 kB / 0.575 GB, free: 3.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.9904, allocations: 4.625 kB / 0.575 GB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.9904, allocations: 4.312 kB / 0.575 GB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.9908, allocations: 128.8 kB / 0.5751 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.9912, allocations: 83.83 kB / 0.5752 GB, free: 3.352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.9934, allocations: 1.678 MB / 0.5768 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003963/0.9938, allocations: 43.72 kB / 0.5769 GB, free: 1.516 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.9938, allocations: 12 kB / 0.5769 GB, free: 1.504 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.9941, allocations: 120.9 kB / 0.577 GB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.635e-05/0.9942, allocations: 43.44 kB / 0.577 GB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.9952, allocations: 418.6 kB / 0.5774 GB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.9953, allocations: 4 kB / 0.5774 GB, free: 0.9141 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.9953, allocations: 4 kB / 0.5774 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.9953, allocations: 0 / 0.5774 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008571/0.9961, allocations: 0.5854 MB / 0.578 GB, free: 284 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.9962, allocations: 0 / 0.578 GB, free: 284 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/0.9965, allocations: 59.91 kB / 0.5781 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000283/0.9968, allocations: 120.8 kB / 0.5782 GB, free: 100 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.9968, allocations: 0 / 0.5782 GB, free: 100 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.9989, allocations: 1.674 MB / 0.5798 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.999, allocations: 4 kB / 0.5798 GB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001318/1, allocations: 0.6524 MB / 0.5804 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001609/1.002, allocations: 1.177 MB / 0.5816 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/1.002, allocations: 148.4 kB / 0.5817 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/1.002, allocations: 8 kB / 0.5817 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/1.003, allocations: 15.98 kB / 0.5818 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/1.003, allocations: 23.95 kB / 0.5818 GB, free: 12.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/1.003, allocations: 11.94 kB / 0.5818 GB, free: 12.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003478/1.003, allocations: 220.5 kB / 0.582 GB, free: 11.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001389/1.005, allocations: 155.4 kB / 0.5822 GB, free: 11.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002864/1.005, allocations: 124.2 kB / 0.5823 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008961/1.006, allocations: 434 kB / 0.5827 GB, free: 11.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/1.006, allocations: 0 / 0.5827 GB, free: 11.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004335/1.006, allocations: 285.5 kB / 0.583 GB, free: 10.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005563/1.007, allocations: 104.1 kB / 0.5831 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/1.009, allocations: 0.8876 MB / 0.5839 GB, free: 9.898 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006655/1.01, allocations: 0.9713 MB / 0.5849 GB, free: 8.898 MB / 426.7 MB Notification: Performance of SimCode: time 4e-07/1.01, allocations: 0 / 0.5849 GB, free: 8.898 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat does not exist to compare? outputFormat=mat