Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001044/0.001044, allocations: 179.5 kB / 8.132 MB, free: 2.215 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.058/1.058, allocations: 194.2 MB / 202.8 MB, free: 8.812 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.001702/0.001702, allocations: 122.4 kB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.159/0.159, allocations: 37.91 MB / 330.5 MB, free: 6.941 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1827/0.3418, allocations: 59.35 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0761/0.4179, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.265/0.6829, allocations: 96.24 MB / 0.5267 GB, free: 8.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.6832, allocations: 85.09 kB / 0.5268 GB, free: 8.785 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.03782/0.7211, allocations: 14.85 MB / 0.5413 GB, free: 14.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.7211, allocations: 8 kB / 0.5413 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006168/0.7217, allocations: 99.22 kB / 0.5414 GB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.7239, allocations: 0.8538 MB / 0.5422 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.7239, allocations: 12 kB / 0.5422 GB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.887e-05/0.724, allocations: 35.92 kB / 0.5423 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006043/0.7246, allocations: 385.3 kB / 0.5426 GB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007472/0.7254, allocations: 0.5854 MB / 0.5432 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.7254, allocations: 7.938 kB / 0.5432 GB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.7254, allocations: 3.938 kB / 0.5432 GB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-05/0.7255, allocations: 51.47 kB / 0.5433 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00284/0.7284, allocations: 2.948 MB / 0.5462 GB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.7288, allocations: 257.1 kB / 0.5464 GB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.7289, allocations: 140.2 kB / 0.5465 GB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.729, allocations: 7.984 kB / 0.5465 GB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.729, allocations: 34.5 kB / 0.5466 GB, free: 9.645 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.475e-06/0.729, allocations: 0 / 0.5466 GB, free: 9.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001358/0.7304, allocations: 0.8871 MB / 0.5474 GB, free: 8.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.7304, allocations: 85.05 kB / 0.5475 GB, free: 8.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.7307, allocations: 268.6 kB / 0.5478 GB, free: 8.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.7307, allocations: 25.7 kB / 0.5478 GB, free: 8.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.7309, allocations: 249 kB / 0.548 GB, free: 8.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.616e-05/0.7309, allocations: 104.4 kB / 0.5481 GB, free: 8.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.731, allocations: 0 / 0.5481 GB, free: 8.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.7311, allocations: 349.5 kB / 0.5485 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.7313, allocations: 138.8 kB / 0.5486 GB, free: 7.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.7315, allocations: 306.8 kB / 0.5489 GB, free: 7.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.7318, allocations: 217.4 kB / 0.5491 GB, free: 7.242 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7318, allocations: 0 / 0.5491 GB, free: 7.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001041/0.7329, allocations: 0.5839 MB / 0.5497 GB, free: 6.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.7329, allocations: 4.094 kB / 0.5497 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006691/0.7336, allocations: 376.1 kB / 0.55 GB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003983/0.734, allocations: 111 kB / 0.5501 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.7343, allocations: 79.83 kB / 0.5502 GB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/0.7369, allocations: 2.859 MB / 0.553 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002938/0.7372, allocations: 20.03 kB / 0.553 GB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.7372, allocations: 22.94 kB / 0.553 GB, free: 3.344 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (46): * Single equations (assignments): 43 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.7374, allocations: 124.6 kB / 0.5532 GB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.231e-05/0.7375, allocations: 31.62 kB / 0.5532 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006356/0.7381, allocations: 369.4 kB / 0.5536 GB, free: 2.902 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.7381, allocations: 11.91 kB / 0.5536 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.7382, allocations: 0 / 0.5536 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.7382, allocations: 7.922 kB / 0.5536 GB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.7393, allocations: 0.8002 MB / 0.5544 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.7393, allocations: 0 / 0.5544 GB, free: 2.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/0.7398, allocations: 63.03 kB / 0.5544 GB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.7398, allocations: 4.062 kB / 0.5544 GB, free: 2.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.7398, allocations: 7.984 kB / 0.5544 GB, free: 2.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.7398, allocations: 4 kB / 0.5544 GB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.7398, allocations: 3.938 kB / 0.5544 GB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006968/0.7405, allocations: 0.6104 MB / 0.555 GB, free: 1.57 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009484/0.7415, allocations: 1.169 MB / 0.5562 GB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.7417, allocations: 132.1 kB / 0.5563 GB, free: 412 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.731e-05/0.7417, allocations: 4 kB / 0.5563 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.7419, allocations: 11.97 kB / 0.5563 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.742, allocations: 15.92 kB / 0.5563 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.742, allocations: 7.984 kB / 0.5563 GB, free: 376 kB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001687/0.7422, allocations: 197.7 kB / 0.5565 GB, free: 216 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001077/0.7433, allocations: 111.8 kB / 0.5566 GB, free: 108 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 26 * Array equations: 1 * 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.0002562/0.7435, allocations: 135 kB / 0.5568 GB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.7446, allocations: 0.573 MB / 0.5573 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.7446, allocations: 0 / 0.5573 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002128/0.7448, allocations: 150.9 kB / 0.5575 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.7452, allocations: 48.5 kB / 0.5575 GB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.7467, allocations: 0.7806 MB / 0.5583 GB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/0.7472, allocations: 0.9216 MB / 0.5592 GB, free: 13.66 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7472, allocations: 0 / 0.5592 GB, free: 13.66 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)