Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001989/0.001989, allocations: 178.1 kB / 8.352 MB, free: 0.7227 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.552/1.552, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001783/0.001783, allocations: 120.1 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1605/0.1605, allocations: 37.93 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.001e-05/2.002e-05, allocations: 4 kB / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2863, allocations: 53.22 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.126/0.4124, allocations: 92.83 MB / 0.5239 GB, free: 4.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.4127, allocations: 87.95 kB / 0.524 GB, free: 4.621 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3506/0.7633, allocations: 10.94 MB / 0.5347 GB, free: 89.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.7634, allocations: 0.5 kB / 0.5347 GB, free: 89.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.366e-05/0.7634, allocations: 13.31 kB / 0.5347 GB, free: 89.82 MB / 378.7 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.001573/0.765, allocations: 0.7748 MB / 0.5355 GB, free: 89.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.7651, allocations: 9.125 kB / 0.5355 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001745/0.7653, allocations: 59.59 kB / 0.5355 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003391/0.7687, allocations: 1.25 MB / 0.5368 GB, free: 88.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.7687, allocations: 14.06 kB / 0.5368 GB, free: 88.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.7689, allocations: 39.25 kB / 0.5368 GB, free: 88.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005474/0.7694, allocations: 414.5 kB / 0.5372 GB, free: 88.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008696/0.7703, allocations: 0.7308 MB / 0.5379 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.7703, allocations: 0 / 0.5379 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.543e-05/0.7704, allocations: 3.281 kB / 0.5379 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.7704, allocations: 9.688 kB / 0.5379 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00314/0.7735, allocations: 2.675 MB / 0.5405 GB, free: 87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.7741, allocations: 470.6 kB / 0.541 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.7747, allocations: 428.6 kB / 0.5414 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.7748, allocations: 12.75 kB / 0.5414 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.7748, allocations: 34.56 kB / 0.5414 GB, free: 86.58 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.805e-06/0.7748, allocations: 0 / 0.5414 GB, free: 86.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.006268/0.7811, allocations: 3.032 MB / 0.5444 GB, free: 84.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.7812, allocations: 81.14 kB / 0.5445 GB, free: 84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.7815, allocations: 306.2 kB / 0.5448 GB, free: 83.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.009e-05/0.7816, allocations: 29.64 kB / 0.5448 GB, free: 83.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.7817, allocations: 252.2 kB / 0.545 GB, free: 83.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.7819, allocations: 146.1 kB / 0.5452 GB, free: 83.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.7819, allocations: 0 / 0.5452 GB, free: 83.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.782, allocations: 366.7 kB / 0.5455 GB, free: 82.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.7826, allocations: 420.9 kB / 0.5459 GB, free: 82.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.7831, allocations: 0.521 MB / 0.5464 GB, free: 81.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005218/0.7836, allocations: 477.3 kB / 0.5469 GB, free: 81.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.7836, allocations: 4 kB / 0.5469 GB, free: 81.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.005316/0.7889, allocations: 2.43 MB / 0.5493 GB, free: 79.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.789, allocations: 8 kB / 0.5493 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.789, allocations: 4 kB / 0.5493 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006351/0.7954, allocations: 2.07 MB / 0.5513 GB, free: 76.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.7958, allocations: 91.78 kB / 0.5514 GB, free: 76.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008473/0.8043, allocations: 8.616 MB / 0.5598 GB, free: 67.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.8049, allocations: 31.86 kB / 0.5598 GB, free: 67.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-05/0.805, allocations: 64.61 kB / 0.5599 GB, free: 67.89 MB / 378.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 (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): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001922/0.8052, allocations: 128.8 kB / 0.56 GB, free: 67.76 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004849/0.81, allocations: 2.083 MB / 0.5621 GB, free: 65.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.8102, allocations: 47.56 kB / 0.5621 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005083/0.8152, allocations: 2.165 MB / 0.5642 GB, free: 63.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.8153, allocations: 7.938 kB / 0.5642 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.8153, allocations: 4 kB / 0.5642 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.8153, allocations: 7.891 kB / 0.5642 GB, free: 63.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006232/0.8215, allocations: 2.901 MB / 0.5671 GB, free: 60.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.8216, allocations: 0 / 0.5671 GB, free: 60.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.8218, allocations: 47.91 kB / 0.5671 GB, free: 60.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008431/0.8303, allocations: 3.21 MB / 0.5703 GB, free: 57.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/0.8305, allocations: 103.9 kB / 0.5704 GB, free: 57.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008836/0.8394, allocations: 8.72 MB / 0.5789 GB, free: 48.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.8394, allocations: 4 kB / 0.5789 GB, free: 48.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005457/0.8449, allocations: 2.588 MB / 0.5814 GB, free: 45.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.8451, allocations: 112.6 kB / 0.5815 GB, free: 45.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.8453, allocations: 83.94 kB / 0.5816 GB, free: 45.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.8457, allocations: 15.97 kB / 0.5816 GB, free: 45.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.8459, allocations: 75.89 kB / 0.5817 GB, free: 45.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.773e-05/0.846, allocations: 71.89 kB / 0.5817 GB, free: 45.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000294/0.8463, allocations: 236.6 kB / 0.582 GB, free: 44.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8463, allocations: 0 / 0.582 GB, free: 44.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001052/0.8474, allocations: 224.1 kB / 0.5822 GB, free: 44.7 MB / 378.7 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.005441/0.8528, allocations: 3.196 MB / 0.5853 GB, free: 41.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002287/0.8551, allocations: 1.302 MB / 0.5866 GB, free: 40.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.8552, allocations: 3.938 kB / 0.5866 GB, free: 40.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.8568, allocations: 0.8886 MB / 0.5874 GB, free: 39.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.8575, allocations: 103.5 kB / 0.5875 GB, free: 39.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003047/0.8606, allocations: 2.144 MB / 0.5896 GB, free: 36.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.861, allocations: 0.8976 MB / 0.5905 GB, free: 36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.8613, allocations: 68.34 kB / 0.5906 GB, free: 35.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.8615, allocations: 155.4 kB / 0.5907 GB, free: 35.78 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.8615, allocations: 0 / 0.5907 GB, free: 35.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/0.9061, allocations: 20.18 MB / 0.6104 GB, free: 15.57 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.9064, allocations: 138.6 kB / 0.6106 GB, free: 15.37 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/3.295, allocations: 0 / 0.6106 GB, free: 15.37 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)