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.001577/0.001577, allocations: 184.9 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.2 MB / 218.9 MB, free: 9.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001516/0.001516, allocations: 88.5 kB / 267.1 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3714/0.3714, allocations: 37.98 MB / 353.1 MB, free: 3.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.166e-05/4.186e-05, allocations: 4 kB / 416.9 MB, free: 41.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 56.31 MB / 473.2 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4681/0.5797, allocations: 95.21 MB / 0.5551 GB, free: 8.348 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003466/0.5801, allocations: 91.94 kB / 0.5552 GB, free: 8.258 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03643/0.6165, allocations: 7.395 MB / 0.5624 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6166, allocations: 0 / 0.5624 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.066e-05/0.6166, allocations: 8 kB / 0.5624 GB, free: 0.7812 MB / 394.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.00152/0.6182, allocations: 0.5825 MB / 0.563 GB, free: 156 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.6183, allocations: 8.031 kB / 0.563 GB, free: 148 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.6184, allocations: 66.55 kB / 0.5631 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.6186, allocations: 39.83 kB / 0.5631 GB, free: 32 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003589/0.6222, allocations: 0.7986 MB / 0.5639 GB, free: 15.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/0.6223, allocations: 28.44 kB / 0.5639 GB, free: 15.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.212e-05/0.6224, allocations: 28 kB / 0.5639 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008397/0.6232, allocations: 336.8 kB / 0.5642 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.6233, allocations: 4 kB / 0.5642 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.6233, allocations: 8 kB / 0.5643 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.868e-05/0.6234, allocations: 15.98 kB / 0.5643 GB, free: 14.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006545/0.624, allocations: 234 kB / 0.5645 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.6268, allocations: 1.359 MB / 0.5658 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.6274, allocations: 165 kB / 0.566 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003323/0.6278, allocations: 102 kB / 0.5661 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.6278, allocations: 4 kB / 0.5661 GB, free: 12.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.6279, allocations: 34.56 kB / 0.5661 GB, free: 12.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 3.016e-06/0.6279, allocations: 0 / 0.5661 GB, free: 12.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.001726/0.6296, allocations: 0.6064 MB / 0.5667 GB, free: 12.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.442e-05/0.6298, allocations: 81.11 kB / 0.5668 GB, free: 11.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004596/0.6302, allocations: 266.6 kB / 0.567 GB, free: 11.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.6303, allocations: 29.7 kB / 0.5671 GB, free: 11.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.6305, allocations: 258.2 kB / 0.5673 GB, free: 11.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.486e-05/0.6306, allocations: 59.19 kB / 0.5674 GB, free: 11.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.6306, allocations: 8.031 kB / 0.5674 GB, free: 11.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.6308, allocations: 318.8 kB / 0.5677 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.631, allocations: 63.97 kB / 0.5677 GB, free: 10.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.6313, allocations: 161.3 kB / 0.5679 GB, free: 10.78 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.6316, allocations: 92.59 kB / 0.568 GB, free: 10.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.6316, allocations: 0 / 0.568 GB, free: 10.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008323/0.6324, allocations: 297.2 kB / 0.5683 GB, free: 10.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.6325, allocations: 4 kB / 0.5683 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.6325, allocations: 4 kB / 0.5683 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000312/0.6328, allocations: 52.83 kB / 0.5683 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.6332, allocations: 51.91 kB / 0.5684 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.6352, allocations: 1.456 MB / 0.5698 GB, free: 8.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.6355, allocations: 12 kB / 0.5698 GB, free: 8.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.6356, allocations: 11.98 kB / 0.5698 GB, free: 8.668 MB / 410.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.0001499/0.6357, allocations: 134.8 kB / 0.5699 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.6358, allocations: 27.62 kB / 0.57 GB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007112/0.6365, allocations: 228.4 kB / 0.5702 GB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.6366, allocations: 4 kB / 0.5702 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.6366, allocations: 0 / 0.5702 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.6366, allocations: 0 / 0.5702 GB, free: 8.266 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.6381, allocations: 0.6288 MB / 0.5708 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.6382, allocations: 0 / 0.5708 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005106/0.6387, allocations: 20 kB / 0.5708 GB, free: 7.555 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006688/0.6394, allocations: 60.67 kB / 0.5709 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.517e-05/0.6395, allocations: 0 / 0.5709 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/0.6416, allocations: 1.464 MB / 0.5723 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.6416, allocations: 7.938 kB / 0.5723 GB, free: 5.883 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009891/0.6426, allocations: 417 kB / 0.5727 GB, free: 5.438 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.6428, allocations: 104.8 kB / 0.5728 GB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.6429, allocations: 4 kB / 0.5728 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.6431, allocations: 8 kB / 0.5728 GB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/0.6432, allocations: 11.92 kB / 0.5728 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.6432, allocations: 12.05 kB / 0.5729 GB, free: 5.281 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003479/0.6436, allocations: 210.2 kB / 0.5731 GB, free: 5.082 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6436, allocations: 0 / 0.5731 GB, free: 5.082 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005641/0.6441, allocations: 64 kB / 0.5731 GB, free: 5.02 MB / 410.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.00138/0.6455, allocations: 1.092 MB / 0.5742 GB, free: 3.883 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008215/0.6464, allocations: 283.1 kB / 0.5745 GB, free: 3.594 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.6464, allocations: 4.188 kB / 0.5745 GB, free: 3.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005532/0.647, allocations: 203.2 kB / 0.5747 GB, free: 3.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006462/0.6477, allocations: 60.69 kB / 0.5747 GB, free: 3.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.6496, allocations: 0.6574 MB / 0.5754 GB, free: 2.617 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/0.6502, allocations: 0.8262 MB / 0.5762 GB, free: 1.762 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.6505, allocations: 95.41 kB / 0.5762 GB, free: 1.672 MB / 410.7 MB Notification: Performance of SimCode: time 1.823e-06/0.6505, allocations: 0 / 0.5762 GB, free: 1.672 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.717/3.367, allocations: 6.231 MB / 0.5823 GB, free: 11.43 MB / 426.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)