Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001076/0.001076, allocations: 187.4 kB / 8.136 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.985/0.985, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001623/0.001623, allocations: 116.7 kB / 247.7 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1556/0.1556, allocations: 37.91 MB / 330.5 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1805/0.3361, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07274/0.4089, allocations: 53.23 MB / 443.1 MB, free: 24.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2523/0.6612, allocations: 89.46 MB / 0.5201 GB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002488/0.6615, allocations: 84.98 kB / 0.5202 GB, free: 10.29 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0202/0.6817, allocations: 7.589 MB / 0.5276 GB, free: 7.098 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.6818, allocations: 8.812 kB / 0.5276 GB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.6819, allocations: 38.72 kB / 0.5276 GB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001902/0.6838, allocations: 0.8054 MB / 0.5284 GB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.6839, allocations: 11.72 kB / 0.5284 GB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.6839, allocations: 15.28 kB / 0.5284 GB, free: 6.645 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003827/0.6843, allocations: 214.1 kB / 0.5287 GB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.6847, allocations: 311.7 kB / 0.5289 GB, free: 6.461 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.6847, allocations: 3.906 kB / 0.529 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.6848, allocations: 1.25 kB / 0.529 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.6848, allocations: 7.656 kB / 0.529 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.6861, allocations: 1.309 MB / 0.5302 GB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001787/0.6862, allocations: 142.9 kB / 0.5304 GB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.6864, allocations: 102.1 kB / 0.5305 GB, free: 5.375 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.6865, allocations: 6.281 kB / 0.5305 GB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.6865, allocations: 35.53 kB / 0.5305 GB, free: 5.332 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.6865, allocations: 0 / 0.5305 GB, free: 5.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008653/0.6874, allocations: 0.5699 MB / 0.5311 GB, free: 4.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.6874, allocations: 83.14 kB / 0.5311 GB, free: 4.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.6876, allocations: 251.7 kB / 0.5314 GB, free: 4.723 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.6876, allocations: 25.7 kB / 0.5314 GB, free: 4.691 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.292e-05/0.6877, allocations: 179.5 kB / 0.5316 GB, free: 4.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/0.6878, allocations: 59.61 kB / 0.5316 GB, free: 4.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.6878, allocations: 1.125 kB / 0.5316 GB, free: 4.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.009e-05/0.6879, allocations: 336 kB / 0.532 GB, free: 4.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.141e-05/0.688, allocations: 66.91 kB / 0.532 GB, free: 4.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.6881, allocations: 151.9 kB / 0.5322 GB, free: 4.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.6882, allocations: 86.77 kB / 0.5323 GB, free: 4.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6882, allocations: 1.188 kB / 0.5323 GB, free: 4.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003989/0.6886, allocations: 287.1 kB / 0.5325 GB, free: 3.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.6886, allocations: 4.656 kB / 0.5325 GB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.6887, allocations: 7.203 kB / 0.5325 GB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.6888, allocations: 44.7 kB / 0.5326 GB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.689, allocations: 52.23 kB / 0.5326 GB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008482/0.6899, allocations: 1.399 MB / 0.534 GB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.69, allocations: 8.828 kB / 0.534 GB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.6901, allocations: 11.81 kB / 0.534 GB, free: 2.594 MB / 346.7 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 (28): * Single equations (assignments): 27 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.785e-05/0.6901, allocations: 112.4 kB / 0.5341 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.6902, allocations: 27.94 kB / 0.5342 GB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003624/0.6906, allocations: 213.7 kB / 0.5344 GB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6906, allocations: 6.344 kB / 0.5344 GB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.6906, allocations: 1.094 kB / 0.5344 GB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.6906, allocations: 1.125 kB / 0.5344 GB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.6913, allocations: 0.5744 MB / 0.5349 GB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6913, allocations: 1.375 kB / 0.5349 GB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.6914, allocations: 25.36 kB / 0.535 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/0.6916, allocations: 56.75 kB / 0.535 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.6916, allocations: 3.781 kB / 0.535 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008222/0.6924, allocations: 1.39 MB / 0.5364 GB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6924, allocations: 4.844 kB / 0.5364 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003988/0.6928, allocations: 412.5 kB / 0.5368 GB, free: 472 kB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005892/0.6934, allocations: 0.8405 MB / 0.5376 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.6935, allocations: 109 kB / 0.5377 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.6936, allocations: 4 kB / 0.5377 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.6937, allocations: 4 kB / 0.5377 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/0.6937, allocations: 11.42 kB / 0.5377 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.6938, allocations: 7.984 kB / 0.5377 GB, free: 15.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001721/0.6939, allocations: 198 kB / 0.5379 GB, free: 15.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009403/0.6949, allocations: 63.98 kB / 0.538 GB, free: 15.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],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 (16): * Single equations (assignments): 14 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001368/0.695, allocations: 111.2 kB / 0.5381 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003979/0.6954, allocations: 255.3 kB / 0.5383 GB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.6955, allocations: 0 / 0.5383 GB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.6958, allocations: 189.6 kB / 0.5385 GB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.6962, allocations: 61.11 kB / 0.5386 GB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009029/0.6971, allocations: 0.5051 MB / 0.539 GB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000405/0.6975, allocations: 0.8472 MB / 0.5399 GB, free: 13.54 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.6975, allocations: 0 / 0.5399 GB, free: 13.54 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)