Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.001003/0.001003, allocations: 181.9 kB / 8.137 MB, free: 0.8672 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.015/1.015, allocations: 194.2 MB / 202.8 MB, free: 2.008 MB / 162.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001625/0.001625, allocations: 109.2 kB / 247.8 MB, free: 5.023 MB / 210.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1535/0.1535, allocations: 37.91 MB / 330.5 MB, free: 7.113 MB / 242.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1673/0.3209, allocations: 59.35 MB / 389.9 MB, free: 20.1 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.4029, allocations: 53.23 MB / 443.1 MB, free: 14.84 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2553/0.6582, allocations: 89.42 MB / 0.5201 GB, free: 3.273 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.6585, allocations: 87.64 kB / 0.5201 GB, free: 3.23 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01806/0.6766, allocations: 6.783 MB / 0.5268 GB, free: 13.41 MB / 370.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.6766, allocations: 8 kB / 0.5268 GB, free: 13.41 MB / 370.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.6767, allocations: 35.53 kB / 0.5268 GB, free: 13.37 MB / 370.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001918/0.6786, allocations: 0.772 MB / 0.5276 GB, free: 12.68 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.6787, allocations: 8 kB / 0.5276 GB, free: 12.67 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.633e-05/0.6787, allocations: 12 kB / 0.5276 GB, free: 12.66 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002713/0.679, allocations: 162.5 kB / 0.5277 GB, free: 12.55 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.6793, allocations: 259.3 kB / 0.528 GB, free: 12.31 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.6793, allocations: 3.938 kB / 0.528 GB, free: 12.31 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.6794, allocations: 0 / 0.528 GB, free: 12.31 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.6794, allocations: 4 kB / 0.528 GB, free: 12.3 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.6805, allocations: 1.181 MB / 0.5291 GB, free: 11.16 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.6808, allocations: 94.75 kB / 0.5292 GB, free: 11.07 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.159e-05/0.6808, allocations: 36.59 kB / 0.5293 GB, free: 11.04 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.6809, allocations: 4 kB / 0.5293 GB, free: 11.03 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.6809, allocations: 42.67 kB / 0.5293 GB, free: 10.98 MB / 370.8 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.6809, allocations: 3.938 kB / 0.5293 GB, free: 10.98 MB / 370.8 MB Notification: Performance of matching and sorting (n=11): time 0.0006271/0.6815, allocations: 431.7 kB / 0.5297 GB, free: 10.54 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.6816, allocations: 81.11 kB / 0.5298 GB, free: 10.44 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.6818, allocations: 201.2 kB / 0.53 GB, free: 10.27 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.6818, allocations: 33.73 kB / 0.53 GB, free: 10.23 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.6819, allocations: 169.2 kB / 0.5302 GB, free: 10.07 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.6819, allocations: 42.08 kB / 0.5302 GB, free: 10.04 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-06/0.6819, allocations: 0 / 0.5302 GB, free: 10.04 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 9.03e-05/0.682, allocations: 334.8 kB / 0.5305 GB, free: 9.707 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.227e-05/0.6821, allocations: 26.5 kB / 0.5306 GB, free: 9.691 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.651e-05/0.6822, allocations: 130.2 kB / 0.5307 GB, free: 9.535 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.075e-05/0.6823, allocations: 52.94 kB / 0.5307 GB, free: 9.496 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.6823, allocations: 0 / 0.5307 GB, free: 9.496 MB / 370.8 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002589/0.6825, allocations: 190.8 kB / 0.5309 GB, free: 9.328 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.6826, allocations: 4 kB / 0.5309 GB, free: 9.324 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.6826, allocations: 4 kB / 0.5309 GB, free: 9.32 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.6826, allocations: 4 kB / 0.5309 GB, free: 9.316 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.6828, allocations: 43.92 kB / 0.531 GB, free: 9.273 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.6828, allocations: 4 kB / 0.531 GB, free: 9.27 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.6829, allocations: 4 kB / 0.531 GB, free: 9.266 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.6829, allocations: 12.36 kB / 0.531 GB, free: 9.254 MB / 370.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.224e-05/0.683, allocations: 124.7 kB / 0.5311 GB, free: 9.129 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.35e-05/0.6831, allocations: 19.72 kB / 0.5311 GB, free: 9.109 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002073/0.6833, allocations: 123.2 kB / 0.5313 GB, free: 9.012 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.6833, allocations: 4 kB / 0.5313 GB, free: 9.008 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.6833, allocations: 0 / 0.5313 GB, free: 9.008 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.6833, allocations: 0 / 0.5313 GB, free: 9.008 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004514/0.6838, allocations: 430.7 kB / 0.5317 GB, free: 8.594 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6838, allocations: 4 kB / 0.5317 GB, free: 8.59 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.6839, allocations: 19.94 kB / 0.5317 GB, free: 8.57 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.6839, allocations: 7.984 kB / 0.5317 GB, free: 8.562 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.6839, allocations: 3.375 kB / 0.5317 GB, free: 8.562 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.684, allocations: 0 / 0.5317 GB, free: 8.562 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.684, allocations: 4 kB / 0.5317 GB, free: 8.559 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002756/0.6842, allocations: 284 kB / 0.532 GB, free: 8.281 MB / 370.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003981/0.6847, allocations: 0.7122 MB / 0.5327 GB, free: 7.59 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.674e-05/0.6847, allocations: 100.8 kB / 0.5328 GB, free: 7.473 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.6848, allocations: 0 / 0.5328 GB, free: 7.473 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.6849, allocations: 0 / 0.5328 GB, free: 7.473 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.175e-05/0.6849, allocations: 7.984 kB / 0.5328 GB, free: 7.465 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.6849, allocations: 7.75 kB / 0.5328 GB, free: 7.461 MB / 370.8 MB Notification: Performance of sort global known variables: time 0.0001136/0.685, allocations: 158 kB / 0.5329 GB, free: 7.332 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.00096/0.686, allocations: 44.16 kB / 0.533 GB, free: 7.289 MB / 370.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001341/0.6861, allocations: 111.2 kB / 0.5331 GB, free: 7.168 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.6863, allocations: 92.23 kB / 0.5332 GB, free: 7.098 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6863, allocations: 6.938 kB / 0.5332 GB, free: 7.094 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 6.558e-05/0.6864, allocations: 35 kB / 0.5332 GB, free: 7.066 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.6868, allocations: 58.45 kB / 0.5333 GB, free: 7.02 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007055/0.6875, allocations: 353.9 kB / 0.5336 GB, free: 6.672 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.6879, allocations: 0.8146 MB / 0.5344 GB, free: 5.84 MB / 370.8 MB Notification: Performance of SimCode: time 3.31e-07/0.6879, allocations: 0 / 0.5344 GB, free: 5.84 MB / 370.8 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)