Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.002199/0.002199, allocations: 186.1 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.981/1.981, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001075/0.001074, allocations: 84.44 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.2737/0.2737, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.612e-05/3.622e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.549/0.655, allocations: 94.76 MB / 0.5547 GB, free: 8.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003378/0.6554, allocations: 83.95 kB / 0.5547 GB, free: 8.828 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02972/0.6851, allocations: 6.634 MB / 0.5612 GB, free: 2.137 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6852, allocations: 0 / 0.5612 GB, free: 2.137 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.772e-05/0.6852, allocations: 7.938 kB / 0.5612 GB, free: 2.129 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001107/0.6863, allocations: 0.5273 MB / 0.5617 GB, free: 1.559 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.6864, allocations: 8.031 kB / 0.5617 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.287e-05/0.6865, allocations: 66.53 kB / 0.5618 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.498e-05/0.6866, allocations: 39.83 kB / 0.5618 GB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/0.6895, allocations: 0.7554 MB / 0.5626 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.6896, allocations: 16.44 kB / 0.5626 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.489e-05/0.6897, allocations: 20 kB / 0.5626 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006639/0.6904, allocations: 290.7 kB / 0.5629 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.6904, allocations: 8 kB / 0.5629 GB, free: 280 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.301e-05/0.6904, allocations: 4 kB / 0.5629 GB, free: 276 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.6905, allocations: 8 kB / 0.5629 GB, free: 268 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.691, allocations: 176.9 kB / 0.5631 GB, free: 92 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.693, allocations: 1.232 MB / 0.5643 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.6934, allocations: 109.4 kB / 0.5644 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.6935, allocations: 45.77 kB / 0.5644 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.6936, allocations: 3.938 kB / 0.5644 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.6936, allocations: 34.56 kB / 0.5645 GB, free: 14.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.495e-06/0.6936, allocations: 0 / 0.5645 GB, free: 14.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=11): time 0.001077/0.6947, allocations: 456.5 kB / 0.5649 GB, free: 14.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.6948, allocations: 81.05 kB / 0.565 GB, free: 13.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003251/0.6951, allocations: 223 kB / 0.5652 GB, free: 13.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.6952, allocations: 29.7 kB / 0.5652 GB, free: 13.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.6954, allocations: 254 kB / 0.5655 GB, free: 13.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.6954, allocations: 43.45 kB / 0.5655 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.6954, allocations: 4 kB / 0.5655 GB, free: 13.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.6956, allocations: 314.9 kB / 0.5658 GB, free: 13.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.6957, allocations: 40 kB / 0.5659 GB, free: 13.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.6959, allocations: 121.7 kB / 0.566 GB, free: 12.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.6961, allocations: 63.91 kB / 0.566 GB, free: 12.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.6961, allocations: 0 / 0.566 GB, free: 12.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004539/0.6966, allocations: 190 kB / 0.5662 GB, free: 12.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.6966, allocations: 12.19 kB / 0.5662 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.6966, allocations: 7.938 kB / 0.5662 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.6967, allocations: 8 kB / 0.5662 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.697, allocations: 39.92 kB / 0.5663 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/0.697, allocations: 8 kB / 0.5663 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.6972, allocations: 8 kB / 0.5663 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.6973, allocations: 15.94 kB / 0.5663 GB, free: 12.52 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 (24): * Single equations (assignments): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.6974, allocations: 120.9 kB / 0.5664 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.007e-05/0.6975, allocations: 23.72 kB / 0.5664 GB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003502/0.6978, allocations: 131.4 kB / 0.5666 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.6978, allocations: 4 kB / 0.5666 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6979, allocations: 0 / 0.5666 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6979, allocations: 0 / 0.5666 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008343/0.6987, allocations: 479.2 kB / 0.567 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.6987, allocations: 0 / 0.567 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.699, allocations: 27.92 kB / 0.5671 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.699, allocations: 4.031 kB / 0.5671 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.699, allocations: 8 kB / 0.5671 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.6991, allocations: 0 / 0.5671 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6991, allocations: 0 / 0.5671 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005114/0.6996, allocations: 304.3 kB / 0.5674 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.346e-05/0.6997, allocations: 100.8 kB / 0.5675 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.6998, allocations: 7.953 kB / 0.5675 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.6999, allocations: 0 / 0.5675 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.7, allocations: 11.98 kB / 0.5675 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.7, allocations: 4 kB / 0.5675 GB, free: 11.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002297/0.7002, allocations: 167.1 kB / 0.5676 GB, free: 11.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7002, allocations: 4 kB / 0.5676 GB, free: 11.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004344/0.7007, allocations: 44 kB / 0.5677 GB, free: 10.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008898/0.7016, allocations: 0.9862 MB / 0.5686 GB, free: 9.961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003344/0.7019, allocations: 119.8 kB / 0.5688 GB, free: 9.844 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.702, allocations: 0 / 0.5688 GB, free: 9.844 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.7021, allocations: 39.94 kB / 0.5688 GB, free: 9.805 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.7027, allocations: 57.64 kB / 0.5689 GB, free: 9.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.704, allocations: 467.9 kB / 0.5693 GB, free: 9.246 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.7046, allocations: 0.7755 MB / 0.5701 GB, free: 8.441 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.7048, allocations: 83.41 kB / 0.5701 GB, free: 8.359 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/0.7048, allocations: 0 / 0.5701 GB, free: 8.359 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.454/3.158, allocations: 4.091 MB / 0.5741 GB, free: 4.266 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)