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.002163/0.002163, allocations: 180.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.281/2.281, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001092, allocations: 86.16 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2672/0.2672, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.92e-05/1.919e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.5785, allocations: 93.46 MB / 0.5466 GB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.5789, allocations: 87.33 kB / 0.5467 GB, free: 11.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02415/0.603, allocations: 6.093 MB / 0.5526 GB, free: 8.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6031, allocations: 0 / 0.5526 GB, free: 8.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.678e-05/0.6031, allocations: 7.688 kB / 0.5526 GB, free: 8.59 MB / 362.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.0007796/0.6039, allocations: 0.5051 MB / 0.5531 GB, free: 8.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.604, allocations: 7.656 kB / 0.5531 GB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.889e-05/0.6041, allocations: 35.3 kB / 0.5532 GB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.6067, allocations: 0.7507 MB / 0.5539 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.6068, allocations: 7.625 kB / 0.5539 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.6068, allocations: 15.38 kB / 0.5539 GB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003787/0.6072, allocations: 140.9 kB / 0.5541 GB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004039/0.6077, allocations: 233.1 kB / 0.5543 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.6077, allocations: 3.875 kB / 0.5543 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.6077, allocations: 0 / 0.5543 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.6077, allocations: 3.844 kB / 0.5543 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.6091, allocations: 1.125 MB / 0.5554 GB, free: 6.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.6093, allocations: 73.7 kB / 0.5555 GB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.994e-05/0.6094, allocations: 27.97 kB / 0.5555 GB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.6094, allocations: 4.031 kB / 0.5555 GB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.6095, allocations: 38.31 kB / 0.5555 GB, free: 6.469 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 4.058e-06/0.6095, allocations: 0 / 0.5555 GB, free: 6.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007309/0.6102, allocations: 387 kB / 0.5559 GB, free: 6.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/0.6103, allocations: 77.11 kB / 0.556 GB, free: 6.035 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.6105, allocations: 195.1 kB / 0.5562 GB, free: 5.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.6105, allocations: 29.64 kB / 0.5562 GB, free: 5.891 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.488e-05/0.6106, allocations: 249.3 kB / 0.5564 GB, free: 5.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.6107, allocations: 26.8 kB / 0.5565 GB, free: 5.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.6107, allocations: 0 / 0.5565 GB, free: 5.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.6108, allocations: 326.5 kB / 0.5568 GB, free: 5.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.838e-05/0.6108, allocations: 21.98 kB / 0.5568 GB, free: 5.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.737e-05/0.6109, allocations: 115.3 kB / 0.5569 GB, free: 5.211 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.583e-05/0.611, allocations: 40.27 kB / 0.5569 GB, free: 5.199 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6111, allocations: 3.688 kB / 0.5569 GB, free: 5.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002875/0.6114, allocations: 140 kB / 0.5571 GB, free: 5.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.6114, allocations: 8.281 kB / 0.5571 GB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6114, allocations: 7.844 kB / 0.5571 GB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.6114, allocations: 3.844 kB / 0.5571 GB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.6117, allocations: 42.48 kB / 0.5571 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.6117, allocations: 11.92 kB / 0.5571 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.6119, allocations: 3.719 kB / 0.5572 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.6119, allocations: 14.42 kB / 0.5572 GB, free: 5.113 MB / 362.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 (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 6.979e-05/0.612, allocations: 112.6 kB / 0.5573 GB, free: 5 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001618/0.6122, allocations: 90.47 kB / 0.5574 GB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/0.6123, allocations: 23.31 kB / 0.5574 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.6125, allocations: 89.53 kB / 0.5575 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.6125, allocations: 0 / 0.5575 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6125, allocations: 0 / 0.5575 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.6125, allocations: 3.812 kB / 0.5575 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.613, allocations: 367.7 kB / 0.5578 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.613, allocations: 256 / 0.5578 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.6132, allocations: 23.3 kB / 0.5578 GB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.6132, allocations: 8.031 kB / 0.5578 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.6132, allocations: 7.25 kB / 0.5579 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6132, allocations: 0 / 0.5579 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6132, allocations: 0 / 0.5579 GB, free: 4.566 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.6135, allocations: 242.7 kB / 0.5581 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.6136, allocations: 99.56 kB / 0.5582 GB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.6136, allocations: 3.938 kB / 0.5582 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.6138, allocations: 7.891 kB / 0.5582 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.979e-05/0.6138, allocations: 3.938 kB / 0.5582 GB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.6138, allocations: 3.812 kB / 0.5582 GB, free: 4.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001397/0.614, allocations: 152.4 kB / 0.5583 GB, free: 4.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.614, allocations: 0 / 0.5583 GB, free: 4.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004632/0.6144, allocations: 38.31 kB / 0.5584 GB, free: 4.148 MB / 362.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 (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.0004578/0.6149, allocations: 0.9114 MB / 0.5593 GB, free: 3.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002018/0.6151, allocations: 75.03 kB / 0.5593 GB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6152, allocations: 0 / 0.5593 GB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.878e-05/0.6152, allocations: 22.66 kB / 0.5594 GB, free: 3.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.6158, allocations: 49.81 kB / 0.5594 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.6169, allocations: 423.6 kB / 0.5598 GB, free: 2.941 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.6171, allocations: 0.7679 MB / 0.5606 GB, free: 2.203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.6173, allocations: 70.48 kB / 0.5606 GB, free: 2.191 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6173, allocations: 0 / 0.5606 GB, free: 2.191 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.557/3.174, allocations: 3.647 MB / 0.5642 GB, free: 15.48 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)