Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.002216/0.002216, allocations: 174.3 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008815/0.0008814, allocations: 95.28 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1794/0.1794, allocations: 37.99 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.139e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1471, allocations: 56.32 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4313/0.5785, allocations: 97.85 MB / 0.5516 GB, free: 12.93 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.5788, allocations: 87.95 kB / 0.5517 GB, free: 12.84 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03293/0.6117, allocations: 11.01 MB / 0.5624 GB, free: 1.738 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6118, allocations: 0 / 0.5624 GB, free: 1.738 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.5e-05/0.6118, allocations: 11.94 kB / 0.5625 GB, free: 1.727 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001529/0.6134, allocations: 0.7846 MB / 0.5632 GB, free: 0.8945 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.6134, allocations: 12.03 kB / 0.5632 GB, free: 0.8828 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.6136, allocations: 51.44 kB / 0.5633 GB, free: 0.832 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003295/0.6169, allocations: 1.253 MB / 0.5645 GB, free: 15.54 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.6169, allocations: 12 kB / 0.5645 GB, free: 15.52 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.6171, allocations: 35.91 kB / 0.5645 GB, free: 15.49 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006485/0.6177, allocations: 413.3 kB / 0.5649 GB, free: 15.09 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.6187, allocations: 0.7294 MB / 0.5657 GB, free: 14.32 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.6188, allocations: 0 / 0.5657 GB, free: 14.32 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.6188, allocations: 7.953 kB / 0.5657 GB, free: 14.31 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.6188, allocations: 8 kB / 0.5657 GB, free: 14.3 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003856/0.6227, allocations: 2.639 MB / 0.5682 GB, free: 11.59 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006948/0.6234, allocations: 461.2 kB / 0.5687 GB, free: 11.12 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006925/0.6241, allocations: 426.1 kB / 0.5691 GB, free: 10.7 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.6242, allocations: 7.984 kB / 0.5691 GB, free: 10.7 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.6242, allocations: 46.5 kB / 0.5691 GB, free: 10.64 MB / 411.1 MB Notification: Performance of pre-optimization done (n=32): time 2.625e-06/0.6242, allocations: 0 / 0.5691 GB, free: 10.64 MB / 411.1 MB Notification: Performance of matching and sorting (n=33): time 0.007175/0.6314, allocations: 3.028 MB / 0.5721 GB, free: 7.543 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.6315, allocations: 81.11 kB / 0.5722 GB, free: 7.445 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/0.632, allocations: 302.4 kB / 0.5725 GB, free: 7.148 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 8.94e-05/0.6321, allocations: 25.7 kB / 0.5725 GB, free: 7.117 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.6323, allocations: 248.2 kB / 0.5727 GB, free: 6.867 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.6325, allocations: 150.1 kB / 0.5729 GB, free: 6.719 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.6326, allocations: 7.969 kB / 0.5729 GB, free: 6.711 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.6327, allocations: 358.8 kB / 0.5732 GB, free: 6.352 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005147/0.6333, allocations: 413 kB / 0.5736 GB, free: 5.945 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/0.6339, allocations: 0.5132 MB / 0.5741 GB, free: 5.387 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.6345, allocations: 461.3 kB / 0.5746 GB, free: 4.938 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6345, allocations: 4 kB / 0.5746 GB, free: 4.934 MB / 411.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003682/0.6382, allocations: 2.071 MB / 0.5766 GB, free: 2.848 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.6382, allocations: 4 kB / 0.5766 GB, free: 2.844 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.6382, allocations: 4 kB / 0.5766 GB, free: 2.84 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006149/0.6444, allocations: 2.694 MB / 0.5792 GB, free: 140 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/0.6448, allocations: 87.89 kB / 0.5793 GB, free: 52 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.6448, allocations: 7.938 kB / 0.5793 GB, free: 44 kB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.6452, allocations: 23.95 kB / 0.5793 GB, free: 20 kB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.6454, allocations: 79.84 kB / 0.5794 GB, free: 15.94 MB / 427.1 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.6456, allocations: 121.2 kB / 0.5795 GB, free: 15.82 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005451/0.6511, allocations: 2.09 MB / 0.5816 GB, free: 13.71 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.6512, allocations: 51.52 kB / 0.5816 GB, free: 13.66 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005513/0.6567, allocations: 2.169 MB / 0.5837 GB, free: 11.48 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6567, allocations: 8 kB / 0.5837 GB, free: 11.47 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.6567, allocations: 0 / 0.5837 GB, free: 11.47 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.6567, allocations: 3.984 kB / 0.5837 GB, free: 11.46 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006592/0.6633, allocations: 2.908 MB / 0.5866 GB, free: 8.5 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.6634, allocations: 0 / 0.5866 GB, free: 8.5 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.6636, allocations: 47.97 kB / 0.5866 GB, free: 8.453 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009611/0.6732, allocations: 3.213 MB / 0.5898 GB, free: 5.227 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002318/0.6735, allocations: 103.9 kB / 0.5899 GB, free: 5.125 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/0.6852, allocations: 8.721 MB / 0.5984 GB, free: 12.17 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.6852, allocations: 4 kB / 0.5984 GB, free: 12.16 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006172/0.6914, allocations: 2.586 MB / 0.6009 GB, free: 9.535 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.6917, allocations: 112.6 kB / 0.601 GB, free: 9.406 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.6919, allocations: 83.94 kB / 0.6011 GB, free: 9.324 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.6923, allocations: 27.89 kB / 0.6011 GB, free: 9.297 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.6925, allocations: 71.89 kB / 0.6012 GB, free: 9.227 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.78e-05/0.6926, allocations: 63.97 kB / 0.6013 GB, free: 9.164 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0003114/0.693, allocations: 236.6 kB / 0.6015 GB, free: 8.938 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.693, allocations: 0 / 0.6015 GB, free: 8.938 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0009205/0.6939, allocations: 176 kB / 0.6017 GB, free: 8.766 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006593/0.7005, allocations: 3.19 MB / 0.6048 GB, free: 5.527 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.7026, allocations: 1.046 MB / 0.6058 GB, free: 4.438 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.7027, allocations: 0 / 0.6058 GB, free: 4.438 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.7047, allocations: 0.8878 MB / 0.6067 GB, free: 3.523 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.7056, allocations: 110.1 kB / 0.6068 GB, free: 3.418 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003645/0.7092, allocations: 2.138 MB / 0.6089 GB, free: 1.238 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.7098, allocations: 0.8859 MB / 0.6097 GB, free: 336 kB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0003108/0.7101, allocations: 84.31 kB / 0.6098 GB, free: 248 kB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.7104, allocations: 151.4 kB / 0.6099 GB, free: 96 kB / 443.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7104, allocations: 0 / 0.6099 GB, free: 96 kB / 443.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05793/0.7683, allocations: 22.37 MB / 0.6318 GB, free: 9.707 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/0.7686, allocations: 144.2 kB / 0.6319 GB, free: 9.512 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.4/3.169, allocations: 4.031 kB / 0.6319 GB, free: 9.508 MB / 475.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)