Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001004/0.001004, allocations: 181.3 kB / 8.13 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.05/1.05, allocations: 194.2 MB / 202.8 MB, free: 8.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001603/0.001603, allocations: 117.5 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1531/0.1531, allocations: 37.92 MB / 330.5 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.177/0.3301, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07543/0.4056, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2302/0.6358, allocations: 92.27 MB / 0.5228 GB, free: 9.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.6361, allocations: 86.42 kB / 0.5229 GB, free: 9.984 MB / 346.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.03833/0.6744, allocations: 16.61 MB / 0.5391 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.6744, allocations: 8 kB / 0.5392 GB, free: 500 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.6746, allocations: 71.16 kB / 0.5392 GB, free: 428 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/0.6772, allocations: 1.164 MB / 0.5404 GB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001315/0.6773, allocations: 92.61 kB / 0.5404 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-05/0.6774, allocations: 39.94 kB / 0.5405 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008383/0.6783, allocations: 0.4965 MB / 0.541 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009404/0.6792, allocations: 0.6443 MB / 0.5416 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.6792, allocations: 0 / 0.5416 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.284e-05/0.6793, allocations: 0 / 0.5416 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.6793, allocations: 27.88 kB / 0.5416 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.6823, allocations: 2.365 MB / 0.5439 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.6829, allocations: 356.4 kB / 0.5443 GB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.6832, allocations: 179.1 kB / 0.5444 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.6832, allocations: 12.22 kB / 0.5445 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.6835, allocations: 213 kB / 0.5447 GB, free: 11.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=36): time 1.724e-06/0.6835, allocations: 0 / 0.5447 GB, free: 11.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009163/0.6845, allocations: 395.8 kB / 0.545 GB, free: 11.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.6845, allocations: 132.5 kB / 0.5452 GB, free: 11.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.6848, allocations: 290.8 kB / 0.5454 GB, free: 11.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.6848, allocations: 29.73 kB / 0.5455 GB, free: 11.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.685, allocations: 270.7 kB / 0.5457 GB, free: 10.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.58e-05/0.6851, allocations: 121.8 kB / 0.5458 GB, free: 10.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.6851, allocations: 0 / 0.5458 GB, free: 10.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6852, allocations: 350 kB / 0.5462 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.6854, allocations: 107.4 kB / 0.5463 GB, free: 10.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.6856, allocations: 222.7 kB / 0.5465 GB, free: 10.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.6859, allocations: 150.6 kB / 0.5466 GB, free: 10.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6859, allocations: 0 / 0.5466 GB, free: 10.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009269/0.6868, allocations: 483.7 kB / 0.5471 GB, free: 9.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.6868, allocations: 8.062 kB / 0.5471 GB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.6868, allocations: 4 kB / 0.5471 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.6871, allocations: 135.3 kB / 0.5472 GB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.6874, allocations: 75.91 kB / 0.5473 GB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.6892, allocations: 1.679 MB / 0.549 GB, free: 8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.6895, allocations: 39.77 kB / 0.549 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.6896, allocations: 15.31 kB / 0.549 GB, free: 7.949 MB / 362.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.0001457/0.6897, allocations: 128.3 kB / 0.5491 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.765e-05/0.6898, allocations: 51.48 kB / 0.5492 GB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008817/0.6907, allocations: 405.4 kB / 0.5496 GB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.6907, allocations: 4 kB / 0.5496 GB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.6907, allocations: 8 kB / 0.5496 GB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.6907, allocations: 3.984 kB / 0.5496 GB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/0.6913, allocations: 0.5811 MB / 0.5501 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.6913, allocations: 3.984 kB / 0.5501 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.6916, allocations: 55.3 kB / 0.5502 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.6919, allocations: 124.8 kB / 0.5503 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.6919, allocations: 3.188 kB / 0.5503 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.6936, allocations: 1.668 MB / 0.552 GB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.6936, allocations: 4 kB / 0.552 GB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001084/0.6947, allocations: 0.6445 MB / 0.5526 GB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001372/0.6961, allocations: 1.18 MB / 0.5537 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.6962, allocations: 147.1 kB / 0.5539 GB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.071e-05/0.6963, allocations: 7.984 kB / 0.5539 GB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.6965, allocations: 15.98 kB / 0.5539 GB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.6966, allocations: 30.08 kB / 0.5539 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.6967, allocations: 4 kB / 0.5539 GB, free: 3.492 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002143/0.6969, allocations: 218.4 kB / 0.5541 GB, free: 3.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001132/0.698, allocations: 162.9 kB / 0.5543 GB, free: 3.172 MB / 362.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.0002355/0.6983, allocations: 130.5 kB / 0.5544 GB, free: 3.039 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.699, allocations: 438.6 kB / 0.5548 GB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.699, allocations: 0 / 0.5548 GB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.6994, allocations: 277.8 kB / 0.5551 GB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.6999, allocations: 103.9 kB / 0.5552 GB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.7016, allocations: 0.8912 MB / 0.5561 GB, free: 1.562 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005741/0.7021, allocations: 0.9786 MB / 0.557 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of SimCode: time 2.635e-06/0.7022, allocations: 0 / 0.557 GB, free: 0.5781 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)