Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002291/0.002291, allocations: 183.1 kB / 15.76 MB, free: 6.34 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.979/1.979, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001112/0.001112, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2487/0.2487, allocations: 38.05 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004462, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1049, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4744/0.5793, allocations: 94.21 MB / 0.5599 GB, free: 5.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.5797, allocations: 87.92 kB / 0.56 GB, free: 4.977 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02434/0.604, allocations: 6.17 MB / 0.566 GB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.6041, allocations: 0 / 0.566 GB, free: 15.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.923e-05/0.6041, allocations: 4 kB / 0.566 GB, free: 15.67 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001121/0.6053, allocations: 0.5374 MB / 0.5665 GB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.6053, allocations: 16.03 kB / 0.5666 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.803e-05/0.6054, allocations: 52.05 kB / 0.5666 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.454e-05/0.6055, allocations: 35.92 kB / 0.5666 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002901/0.6084, allocations: 0.7704 MB / 0.5674 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.6085, allocations: 15.81 kB / 0.5674 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.6086, allocations: 18.5 kB / 0.5674 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.6092, allocations: 269.6 kB / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.6092, allocations: 0 / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.6092, allocations: 11.5 kB / 0.5677 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.6093, allocations: 4 kB / 0.5677 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.6097, allocations: 161 kB / 0.5679 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.6115, allocations: 1.179 MB / 0.569 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.6117, allocations: 68.92 kB / 0.5691 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.6117, allocations: 7.984 kB / 0.5691 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.6118, allocations: 41.69 kB / 0.5691 GB, free: 12.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.525e-06/0.6118, allocations: 0 / 0.5691 GB, free: 12.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009388/0.6127, allocations: 403.5 kB / 0.5695 GB, free: 12.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.164e-05/0.6128, allocations: 81.23 kB / 0.5696 GB, free: 12.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.6132, allocations: 223.7 kB / 0.5698 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.6132, allocations: 29.64 kB / 0.5698 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.6134, allocations: 242 kB / 0.5701 GB, free: 11.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.6134, allocations: 34.39 kB / 0.5701 GB, free: 11.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.013e-05/0.6134, allocations: 3.562 kB / 0.5701 GB, free: 11.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.6136, allocations: 322.2 kB / 0.5704 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.761e-05/0.6137, allocations: 22.73 kB / 0.5704 GB, free: 11.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.6138, allocations: 126.2 kB / 0.5705 GB, free: 11.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.614, allocations: 42.31 kB / 0.5706 GB, free: 11.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.614, allocations: 4 kB / 0.5706 GB, free: 11.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003677/0.6144, allocations: 172.4 kB / 0.5708 GB, free: 11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.6144, allocations: 8 kB / 0.5708 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.6144, allocations: 4 kB / 0.5708 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.6145, allocations: 4 kB / 0.5708 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.6147, allocations: 40.36 kB / 0.5708 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.6148, allocations: 15.92 kB / 0.5708 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.6149, allocations: 7.625 kB / 0.5708 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.615, allocations: 8 kB / 0.5708 GB, free: 10.92 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.000195/0.6152, allocations: 159.8 kB / 0.571 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.6153, allocations: 19.72 kB / 0.571 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.6155, allocations: 95.97 kB / 0.5711 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.6155, allocations: 7.984 kB / 0.5711 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.6155, allocations: 0 / 0.5711 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.6155, allocations: 4 kB / 0.5711 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006308/0.6162, allocations: 424.1 kB / 0.5715 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.6162, allocations: 0 / 0.5715 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.6164, allocations: 15.98 kB / 0.5715 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.6164, allocations: 0 / 0.5715 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.6164, allocations: 4 kB / 0.5715 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.6164, allocations: 0 / 0.5715 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.6164, allocations: 0 / 0.5715 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003632/0.6168, allocations: 256.8 kB / 0.5718 GB, free: 9.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/0.6169, allocations: 92.86 kB / 0.5719 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.617, allocations: 4 kB / 0.5719 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.6171, allocations: 7.828 kB / 0.5719 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.6171, allocations: 12.05 kB / 0.5719 GB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.6172, allocations: 4 kB / 0.5719 GB, free: 9.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002218/0.6174, allocations: 174 kB / 0.5721 GB, free: 9.684 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6174, allocations: 0 / 0.5721 GB, free: 9.684 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004293/0.6178, allocations: 43.05 kB / 0.5721 GB, free: 9.645 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.000748/0.6186, allocations: 0.921 MB / 0.573 GB, free: 8.715 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002509/0.6189, allocations: 90.28 kB / 0.5731 GB, free: 8.641 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6189, allocations: 0 / 0.5731 GB, free: 8.641 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.506e-05/0.619, allocations: 39.34 kB / 0.5731 GB, free: 8.609 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.6195, allocations: 55.94 kB / 0.5732 GB, free: 8.562 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003451/0.623, allocations: 3.489 MB / 0.5766 GB, free: 5.078 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.6235, allocations: 0.7661 MB / 0.5773 GB, free: 4.293 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.6236, allocations: 74.34 kB / 0.5774 GB, free: 4.266 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6236, allocations: 0 / 0.5774 GB, free: 4.266 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.729/3.353, allocations: 3.738 MB / 0.5811 GB, free: 0.5664 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)