Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.002439/0.002439, allocations: 186 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.947/1.947, allocations: 205.2 MB / 218.9 MB, free: 9.215 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.001101/0.001101, allocations: 97 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2881/0.2881, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.388e-05/4.411e-05, allocations: 7.984 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4924/0.6211, allocations: 100.8 MB / 0.5606 GB, free: 2.852 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.6214, allocations: 83.95 kB / 0.5607 GB, free: 2.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0583/0.6798, allocations: 12.55 MB / 0.5729 GB, free: 6.094 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.6798, allocations: 0 / 0.5729 GB, free: 6.094 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.218e-05/0.6799, allocations: 16 kB / 0.5729 GB, free: 6.078 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001732/0.6816, allocations: 0.6644 MB / 0.5736 GB, free: 5.363 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.6817, allocations: 12.03 kB / 0.5736 GB, free: 5.352 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000188/0.6819, allocations: 82.52 kB / 0.5737 GB, free: 5.262 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009197/0.6828, allocations: 99.27 kB / 0.5738 GB, free: 5.164 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003478/0.6863, allocations: 0.8535 MB / 0.5746 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.6864, allocations: 32.94 kB / 0.5746 GB, free: 4.238 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.6866, allocations: 47.98 kB / 0.5747 GB, free: 4.191 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.6881, allocations: 0.6173 MB / 0.5753 GB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.6881, allocations: 3.938 kB / 0.5753 GB, free: 3.504 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.579e-05/0.6882, allocations: 16 kB / 0.5753 GB, free: 3.488 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.247e-05/0.6883, allocations: 28.77 kB / 0.5753 GB, free: 3.461 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.6895, allocations: 438.7 kB / 0.5758 GB, free: 3.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00548/0.695, allocations: 2.921 MB / 0.5786 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.6955, allocations: 201 kB / 0.5788 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003284/0.6959, allocations: 136.7 kB / 0.5789 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.791e-05/0.696, allocations: 7.938 kB / 0.5789 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.696, allocations: 34.56 kB / 0.579 GB, free: 15.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 3.126e-06/0.696, allocations: 0 / 0.579 GB, free: 15.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002266/0.6983, allocations: 0.866 MB / 0.5798 GB, free: 14.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.6984, allocations: 81.3 kB / 0.5799 GB, free: 14.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.6989, allocations: 290.6 kB / 0.5802 GB, free: 14.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.699, allocations: 25.7 kB / 0.5802 GB, free: 14.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.6993, allocations: 345.6 kB / 0.5805 GB, free: 13.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.6994, allocations: 86.75 kB / 0.5806 GB, free: 13.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.6995, allocations: 15.98 kB / 0.5806 GB, free: 13.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.6996, allocations: 330.8 kB / 0.5809 GB, free: 13.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003754/0.7, allocations: 144.9 kB / 0.5811 GB, free: 13.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.7006, allocations: 325.2 kB / 0.5814 GB, free: 12.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005098/0.7011, allocations: 204.9 kB / 0.5816 GB, free: 12.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.7011, allocations: 4 kB / 0.5816 GB, free: 12.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001706/0.7028, allocations: 0.5593 MB / 0.5821 GB, free: 12.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.7029, allocations: 8 kB / 0.5821 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001049/0.7039, allocations: 308.7 kB / 0.5824 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005582/0.7045, allocations: 85.19 kB / 0.5825 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006694/0.7052, allocations: 95.88 kB / 0.5826 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002444/0.7077, allocations: 1.597 MB / 0.5842 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.7082, allocations: 28.05 kB / 0.5842 GB, free: 9.875 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.7083, allocations: 24 kB / 0.5842 GB, free: 9.852 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001696/0.7085, allocations: 124.8 kB / 0.5843 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.7086, allocations: 35.53 kB / 0.5844 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009871/0.7096, allocations: 348.4 kB / 0.5847 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/0.7096, allocations: 8 kB / 0.5847 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.7096, allocations: 3.953 kB / 0.5847 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.7097, allocations: 3.938 kB / 0.5847 GB, free: 9.324 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.712, allocations: 0.8721 MB / 0.5856 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.712, allocations: 0 / 0.5856 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006165/0.7127, allocations: 67.84 kB / 0.5856 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.167e-05/0.7127, allocations: 8.062 kB / 0.5856 GB, free: 8.316 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.7127, allocations: 11.98 kB / 0.5856 GB, free: 8.305 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.7128, allocations: 0 / 0.5856 GB, free: 8.305 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.7128, allocations: 4 kB / 0.5857 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.714, allocations: 0.5728 MB / 0.5862 GB, free: 7.684 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.7141, allocations: 112.7 kB / 0.5863 GB, free: 7.555 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.949e-05/0.7142, allocations: 4 kB / 0.5863 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.7146, allocations: 15.98 kB / 0.5863 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.7146, allocations: 20.2 kB / 0.5864 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.7147, allocations: 7.953 kB / 0.5864 GB, free: 7.508 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004334/0.7151, allocations: 222.1 kB / 0.5866 GB, free: 7.289 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.7152, allocations: 4 kB / 0.5866 GB, free: 7.285 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000755/0.7159, allocations: 108 kB / 0.5867 GB, free: 7.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001755/0.7177, allocations: 1.355 MB / 0.588 GB, free: 5.777 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.7191, allocations: 483.8 kB / 0.5885 GB, free: 5.293 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7191, allocations: 0 / 0.5885 GB, free: 5.293 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.7195, allocations: 143.8 kB / 0.5886 GB, free: 5.152 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006177/0.7201, allocations: 65.3 kB / 0.5887 GB, free: 5.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.723, allocations: 0.964 MB / 0.5896 GB, free: 4.078 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006623/0.7237, allocations: 0.8815 MB / 0.5905 GB, free: 3.168 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003756/0.7241, allocations: 143.4 kB / 0.5906 GB, free: 3.027 MB / 426.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7241, allocations: 0 / 0.5906 GB, free: 3.027 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.834/3.558, allocations: 7.804 MB / 0.5982 GB, free: 11.22 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)