Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001138/0.001138, allocations: 186.8 kB / 8.137 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.144/1.144, allocations: 194.2 MB / 202.8 MB, free: 8.746 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.001495/0.001495, allocations: 119.3 kB / 247.7 MB, free: 6.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1645/0.1645, allocations: 37.91 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1866/0.3512, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07491/0.4261, allocations: 53.24 MB / 443.1 MB, free: 24.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2359/0.662, allocations: 95.23 MB / 0.5257 GB, free: 9.043 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.6623, allocations: 88.55 kB / 0.5258 GB, free: 9.031 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.04153/0.7038, allocations: 15.61 MB / 0.5411 GB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.7039, allocations: 11.94 kB / 0.5411 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.7041, allocations: 71.16 kB / 0.5411 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.7069, allocations: 1.065 MB / 0.5422 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.707, allocations: 16 kB / 0.5422 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.7071, allocations: 28 kB / 0.5422 GB, free: 13.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007988/0.7079, allocations: 486.7 kB / 0.5427 GB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007994/0.7087, allocations: 0.5619 MB / 0.5432 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.7087, allocations: 3.938 kB / 0.5432 GB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.185e-05/0.7088, allocations: 0 / 0.5432 GB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.7088, allocations: 19.91 kB / 0.5433 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.7117, allocations: 2.145 MB / 0.5454 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004059/0.7121, allocations: 286.4 kB / 0.5456 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005892/0.7127, allocations: 332 kB / 0.546 GB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.7128, allocations: 11.97 kB / 0.546 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.7128, allocations: 37.66 kB / 0.546 GB, free: 10.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.215e-06/0.7128, allocations: 0 / 0.546 GB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002147/0.715, allocations: 1.273 MB / 0.5472 GB, free: 9.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.715, allocations: 85.05 kB / 0.5473 GB, free: 9.301 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.7154, allocations: 324.7 kB / 0.5476 GB, free: 9.035 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.7154, allocations: 25.7 kB / 0.5477 GB, free: 9.004 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.7156, allocations: 247.6 kB / 0.5479 GB, free: 8.785 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.7157, allocations: 153.2 kB / 0.548 GB, free: 8.652 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.7157, allocations: 0 / 0.548 GB, free: 8.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.7158, allocations: 359.8 kB / 0.5484 GB, free: 8.312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.7161, allocations: 174.1 kB / 0.5485 GB, free: 8.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.7165, allocations: 293.3 kB / 0.5488 GB, free: 7.93 MB / 362.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.7185, allocations: 0.731 MB / 0.5495 GB, free: 7.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.778e-06/0.7185, allocations: 4 kB / 0.5495 GB, free: 7.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001074/0.7196, allocations: 0.6415 MB / 0.5502 GB, free: 6.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.7196, allocations: 7.938 kB / 0.5502 GB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.7196, allocations: 4.469 kB / 0.5502 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/0.72, allocations: 141.2 kB / 0.5503 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.7205, allocations: 111.7 kB / 0.5504 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.723, allocations: 2.181 MB / 0.5526 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.7233, allocations: 8 kB / 0.5526 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.7234, allocations: 23.86 kB / 0.5526 GB, free: 4.555 MB / 362.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: ind.i[1] = ind.i_start[1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * 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: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.7235, allocations: 124.8 kB / 0.5527 GB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.7236, allocations: 47.34 kB / 0.5527 GB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.7247, allocations: 0.5995 MB / 0.5533 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.7247, allocations: 11.94 kB / 0.5533 GB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7247, allocations: 0 / 0.5533 GB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.7247, allocations: 11.98 kB / 0.5534 GB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/0.7266, allocations: 1.245 MB / 0.5546 GB, free: 2.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.7267, allocations: 3.938 kB / 0.5546 GB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.727, allocations: 75.41 kB / 0.5546 GB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003833/0.7274, allocations: 134.9 kB / 0.5548 GB, free: 2.637 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.7275, allocations: 15.3 kB / 0.5548 GB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.7298, allocations: 2.166 MB / 0.5569 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.7299, allocations: 0 / 0.5569 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001412/0.7313, allocations: 1.01 MB / 0.5579 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001681/0.733, allocations: 1.631 MB / 0.5595 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.7331, allocations: 124.4 kB / 0.5596 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.052e-05/0.7332, allocations: 4 kB / 0.5596 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.7335, allocations: 7.469 kB / 0.5596 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.02e-05/0.7335, allocations: 38.69 kB / 0.5597 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.7336, allocations: 18.86 kB / 0.5597 GB, free: 14.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002768/0.7339, allocations: 246.2 kB / 0.5599 GB, free: 14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001218/0.7351, allocations: 135.4 kB / 0.56 GB, free: 13.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001902/0.7353, allocations: 111 kB / 0.5601 GB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.7363, allocations: 0.5857 MB / 0.5607 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.7363, allocations: 4 kB / 0.5607 GB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008321/0.7371, allocations: 385.3 kB / 0.5611 GB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008965/0.738, allocations: 97 kB / 0.5612 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/0.7411, allocations: 1.016 MB / 0.5622 GB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009436/0.7421, allocations: 0.9802 MB / 0.5631 GB, free: 10.94 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.7421, allocations: 4 kB / 0.5631 GB, free: 10.94 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)