Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002041/0.002041, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.268/2.268, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 90.64 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3263/0.3263, allocations: 38 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.007e-05/2.008e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 56.33 MB / 466.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4993/0.6077, allocations: 94.54 MB / 0.5477 GB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000346/0.6081, allocations: 84.98 kB / 0.5477 GB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03875/0.6468, allocations: 7.333 MB / 0.5549 GB, free: 7.477 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.6469, allocations: 0 / 0.5549 GB, free: 7.477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.89e-05/0.647, allocations: 11.56 kB / 0.5549 GB, free: 7.473 MB / 362.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.001361/0.6483, allocations: 0.577 MB / 0.5555 GB, free: 6.984 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.6484, allocations: 11.72 kB / 0.5555 GB, free: 6.984 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.6486, allocations: 46.34 kB / 0.5555 GB, free: 6.957 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003705/0.6523, allocations: 0.7957 MB / 0.5563 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.6524, allocations: 15.59 kB / 0.5563 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.432e-05/0.6525, allocations: 15.41 kB / 0.5563 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007373/0.6532, allocations: 204.5 kB / 0.5565 GB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.654, allocations: 311.3 kB / 0.5568 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.6541, allocations: 3.875 kB / 0.5568 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.6541, allocations: 0 / 0.5568 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.6542, allocations: 7.688 kB / 0.5568 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.6568, allocations: 1.31 MB / 0.5581 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005337/0.6574, allocations: 154.7 kB / 0.5583 GB, free: 5.281 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.6577, allocations: 97.19 kB / 0.5584 GB, free: 5.254 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.6578, allocations: 4 kB / 0.5584 GB, free: 5.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.6578, allocations: 38.09 kB / 0.5584 GB, free: 5.211 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.748e-06/0.6578, allocations: 0 / 0.5584 GB, free: 5.211 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.001624/0.6595, allocations: 0.5726 MB / 0.559 GB, free: 4.809 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.6596, allocations: 84.73 kB / 0.559 GB, free: 4.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.66, allocations: 249.1 kB / 0.5593 GB, free: 4.586 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.66, allocations: 29.73 kB / 0.5593 GB, free: 4.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.6602, allocations: 262.2 kB / 0.5596 GB, free: 4.344 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.6603, allocations: 57.94 kB / 0.5596 GB, free: 4.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.808e-05/0.6603, allocations: 0 / 0.5596 GB, free: 4.301 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.324e-05/0.6604, allocations: 322.4 kB / 0.5599 GB, free: 3.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.6606, allocations: 52.95 kB / 0.56 GB, free: 3.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.6609, allocations: 153.6 kB / 0.5601 GB, free: 3.852 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.6611, allocations: 87.62 kB / 0.5602 GB, free: 3.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.6612, allocations: 3.906 kB / 0.5602 GB, free: 3.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008291/0.662, allocations: 258.3 kB / 0.5605 GB, free: 3.684 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.662, allocations: 7.953 kB / 0.5605 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.6621, allocations: 4 kB / 0.5605 GB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.6624, allocations: 48.08 kB / 0.5605 GB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.6628, allocations: 47.91 kB / 0.5606 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001647/0.6645, allocations: 1.41 MB / 0.5619 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.665, allocations: 7.984 kB / 0.5619 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.665, allocations: 8.156 kB / 0.5619 GB, free: 2.121 MB / 362.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 0.0001281/0.6651, allocations: 124.4 kB / 0.5621 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006381/0.6658, allocations: 201.5 kB / 0.5623 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.6659, allocations: 27.72 kB / 0.5623 GB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000678/0.6666, allocations: 212.6 kB / 0.5625 GB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.6666, allocations: 4 kB / 0.5625 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6666, allocations: 0 / 0.5625 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.6667, allocations: 4.031 kB / 0.5625 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.6681, allocations: 0.5634 MB / 0.563 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.6681, allocations: 0 / 0.563 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002489/0.6684, allocations: 23.8 kB / 0.5631 GB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003461/0.6688, allocations: 55.97 kB / 0.5631 GB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.6688, allocations: 7.984 kB / 0.5631 GB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.6707, allocations: 1.412 MB / 0.5645 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6708, allocations: 4.156 kB / 0.5645 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.6719, allocations: 406.5 kB / 0.5649 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.6721, allocations: 108.1 kB / 0.565 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.6722, allocations: 4.062 kB / 0.565 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.6725, allocations: 8 kB / 0.565 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.6726, allocations: 15.97 kB / 0.565 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.6727, allocations: 6.938 kB / 0.565 GB, free: 15.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003757/0.673, allocations: 187.8 kB / 0.5652 GB, free: 14.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6731, allocations: 0 / 0.5652 GB, free: 14.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009185/0.674, allocations: 71.98 kB / 0.5653 GB, free: 14.81 MB / 378.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.001595/0.6756, allocations: 1.077 MB / 0.5663 GB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008386/0.6765, allocations: 269.7 kB / 0.5666 GB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6765, allocations: 0 / 0.5666 GB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.6772, allocations: 187.9 kB / 0.5668 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008209/0.678, allocations: 56.92 kB / 0.5668 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.6804, allocations: 0.6407 MB / 0.5675 GB, free: 12.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/0.6812, allocations: 0.8171 MB / 0.5683 GB, free: 11.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.6815, allocations: 98.16 kB / 0.5683 GB, free: 11.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6815, allocations: 3.938 kB / 0.5683 GB, free: 11.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.789/3.471, allocations: 6.215 MB / 0.5744 GB, free: 5.637 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)