Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.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.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",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.001132/0.001132, allocations: 182.6 kB / 8.131 MB, free: 2.211 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.048/1.048, allocations: 194.2 MB / 202.8 MB, free: 8.758 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.0017/0.0017, allocations: 125.1 kB / 247.7 MB, free: 6.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1562/0.1562, allocations: 37.91 MB / 330.5 MB, free: 6.922 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1899/0.3461, allocations: 59.35 MB / 389.9 MB, free: 78.05 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08142/0.4275, allocations: 53.23 MB / 443.1 MB, free: 24.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.258/0.6856, allocations: 94.09 MB / 0.5246 GB, free: 9.645 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.686, allocations: 91.84 kB / 0.5247 GB, free: 9.633 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.03965/0.7257, allocations: 14.99 MB / 0.5393 GB, free: 288 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.7257, allocations: 12 kB / 0.5393 GB, free: 276 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.7259, allocations: 71.16 kB / 0.5394 GB, free: 204 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002827/0.7287, allocations: 1.106 MB / 0.5405 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.7289, allocations: 104.7 kB / 0.5406 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.7291, allocations: 32 kB / 0.5406 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/0.7301, allocations: 0.6194 MB / 0.5412 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000958/0.7311, allocations: 0.6644 MB / 0.5419 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.7311, allocations: 0 / 0.5419 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.426e-05/0.7312, allocations: 3.984 kB / 0.5419 GB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.7312, allocations: 16 kB / 0.5419 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003611/0.7348, allocations: 2.515 MB / 0.5444 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004575/0.7353, allocations: 355.4 kB / 0.5447 GB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.7357, allocations: 352.6 kB / 0.545 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.7358, allocations: 4.438 kB / 0.545 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.7358, allocations: 42.66 kB / 0.5451 GB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.454e-06/0.7358, allocations: 0 / 0.5451 GB, free: 11.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.002453/0.7383, allocations: 1.46 MB / 0.5465 GB, free: 10.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.7383, allocations: 89.48 kB / 0.5466 GB, free: 10.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.7386, allocations: 299.3 kB / 0.5469 GB, free: 9.902 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.7387, allocations: 25.7 kB / 0.5469 GB, free: 9.871 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.7388, allocations: 243.2 kB / 0.5471 GB, free: 9.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.7389, allocations: 172.2 kB / 0.5473 GB, free: 9.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.538e-05/0.739, allocations: 4.031 kB / 0.5473 GB, free: 9.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.7391, allocations: 357.2 kB / 0.5476 GB, free: 9.156 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00031/0.7394, allocations: 232.5 kB / 0.5479 GB, free: 9.008 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003661/0.7398, allocations: 337 kB / 0.5482 GB, free: 8.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.7402, allocations: 257.5 kB / 0.5484 GB, free: 8.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.7402, allocations: 0 / 0.5484 GB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001078/0.7413, allocations: 0.7535 MB / 0.5492 GB, free: 7.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.7413, allocations: 8.031 kB / 0.5492 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.7413, allocations: 4 kB / 0.5492 GB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.7416, allocations: 77.3 kB / 0.5492 GB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.7434, allocations: 427.5 kB / 0.5497 GB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004806/0.7482, allocations: 5.692 MB / 0.5552 GB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005578/0.7488, allocations: 36.12 kB / 0.5552 GB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.491e-05/0.7489, allocations: 23.25 kB / 0.5553 GB, free: 1.469 MB / 362.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 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.000177/0.7491, allocations: 120.8 kB / 0.5554 GB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.7492, allocations: 43.44 kB / 0.5554 GB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.7503, allocations: 0.7106 MB / 0.5561 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.7503, allocations: 19.78 kB / 0.5561 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.7504, allocations: 0 / 0.5561 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.7504, allocations: 7.984 kB / 0.5561 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.7529, allocations: 1.494 MB / 0.5576 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.7529, allocations: 4.188 kB / 0.5576 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/0.7548, allocations: 467.2 kB / 0.5581 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/0.7551, allocations: 83.86 kB / 0.5581 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-05/0.7552, allocations: 4 kB / 0.5581 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.7571, allocations: 2.736 MB / 0.5608 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.7572, allocations: 4.062 kB / 0.5608 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001546/0.7587, allocations: 1.273 MB / 0.5621 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002063/0.7608, allocations: 2.002 MB / 0.564 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.761, allocations: 124.1 kB / 0.5641 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.7611, allocations: 4 kB / 0.5641 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.7616, allocations: 39.88 kB / 0.5642 GB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.7617, allocations: 39.25 kB / 0.5642 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.7617, allocations: 12 kB / 0.5642 GB, free: 9.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002632/0.762, allocations: 236.3 kB / 0.5644 GB, free: 8.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001361/0.7634, allocations: 139.9 kB / 0.5646 GB, free: 8.758 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001975/0.7636, allocations: 111.2 kB / 0.5647 GB, free: 8.641 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00273/0.7663, allocations: 1.18 MB / 0.5658 GB, free: 7.613 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.7663, allocations: 0 / 0.5658 GB, free: 7.613 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002443/0.7688, allocations: 1.006 MB / 0.5668 GB, free: 6.684 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/0.7695, allocations: 103.5 kB / 0.5669 GB, free: 6.605 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.7724, allocations: 1.271 MB / 0.5682 GB, free: 5.426 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007937/0.7732, allocations: 1.001 MB / 0.5691 GB, free: 4.422 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7732, allocations: 0 / 0.5691 GB, free: 4.422 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)