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.002155/0.002155, allocations: 184.1 kB / 13.2 MB, free: 2.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, 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.001095/0.001095, allocations: 90.64 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2723/0.2723, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.718e-05/3.736e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4842/0.5906, allocations: 94.13 MB / 0.554 GB, free: 9.555 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.591, allocations: 87.94 kB / 0.5541 GB, free: 9.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02794/0.6189, allocations: 6.144 MB / 0.5601 GB, free: 3.273 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.619, allocations: 0 / 0.5601 GB, free: 3.273 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.009e-05/0.619, allocations: 8 kB / 0.5601 GB, free: 3.266 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009976/0.62, allocations: 0.5072 MB / 0.5606 GB, free: 2.711 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.6201, allocations: 8.031 kB / 0.5606 GB, free: 2.703 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.6202, allocations: 58.55 kB / 0.5607 GB, free: 2.637 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.6204, allocations: 35.92 kB / 0.5607 GB, free: 2.602 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003297/0.6237, allocations: 0.7478 MB / 0.5615 GB, free: 1.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.6238, allocations: 20.44 kB / 0.5615 GB, free: 1.789 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/0.6238, allocations: 20 kB / 0.5615 GB, free: 1.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.6245, allocations: 258.1 kB / 0.5617 GB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.6245, allocations: 0 / 0.5617 GB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.6245, allocations: 12 kB / 0.5618 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.6246, allocations: 4 kB / 0.5618 GB, free: 1.473 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004386/0.625, allocations: 159.8 kB / 0.5619 GB, free: 1.316 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001945/0.627, allocations: 1.18 MB / 0.5631 GB, free: 48 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.6272, allocations: 73.17 kB / 0.5631 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.147e-05/0.6273, allocations: 33.89 kB / 0.5632 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.6274, allocations: 4 kB / 0.5632 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.6274, allocations: 42.5 kB / 0.5632 GB, free: 15.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.635e-06/0.6274, allocations: 7.938 kB / 0.5632 GB, free: 15.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009733/0.6284, allocations: 388.8 kB / 0.5636 GB, free: 15.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.6285, allocations: 81.11 kB / 0.5637 GB, free: 15.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.6289, allocations: 218.8 kB / 0.5639 GB, free: 15.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.6289, allocations: 25.7 kB / 0.5639 GB, free: 15.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.6291, allocations: 246.1 kB / 0.5641 GB, free: 14.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.6291, allocations: 27.69 kB / 0.5642 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-06/0.6291, allocations: 0 / 0.5642 GB, free: 14.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6293, allocations: 326.8 kB / 0.5645 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-05/0.6294, allocations: 24.38 kB / 0.5645 GB, free: 14.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.6296, allocations: 125.5 kB / 0.5646 GB, free: 14.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.6297, allocations: 51.98 kB / 0.5647 GB, free: 14.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6297, allocations: 0 / 0.5647 GB, free: 14.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003983/0.6301, allocations: 169.3 kB / 0.5648 GB, free: 14.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.6302, allocations: 8 kB / 0.5648 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.6302, allocations: 4 kB / 0.5648 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.6302, allocations: 4 kB / 0.5648 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.6305, allocations: 43.92 kB / 0.5649 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.6306, allocations: 7.984 kB / 0.5649 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.6308, allocations: 4 kB / 0.5649 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.6308, allocations: 12.38 kB / 0.5649 GB, free: 13.98 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 (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.0001113/0.6309, allocations: 126.7 kB / 0.565 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.269e-05/0.631, allocations: 23.72 kB / 0.565 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.6313, allocations: 87.52 kB / 0.5651 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.6313, allocations: 4 kB / 0.5651 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.6313, allocations: 0 / 0.5651 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.6313, allocations: 3.984 kB / 0.5651 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.632, allocations: 423.3 kB / 0.5655 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.6321, allocations: 0 / 0.5655 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.6323, allocations: 15.94 kB / 0.5656 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.6323, allocations: 4 kB / 0.5656 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.6323, allocations: 7.984 kB / 0.5656 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.6323, allocations: 0 / 0.5656 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.433e-06/0.6323, allocations: 7.984 kB / 0.5656 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003961/0.6328, allocations: 252.3 kB / 0.5658 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.6329, allocations: 92.94 kB / 0.5659 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.6329, allocations: 11.89 kB / 0.5659 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.6331, allocations: 4 kB / 0.5659 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.6331, allocations: 4 kB / 0.5659 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.6331, allocations: 0 / 0.5659 GB, free: 12.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.6334, allocations: 175.2 kB / 0.5661 GB, free: 12.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6334, allocations: 0 / 0.5661 GB, free: 12.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004365/0.6338, allocations: 40 kB / 0.5661 GB, free: 12.6 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 (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.000779/0.6346, allocations: 0.9287 MB / 0.567 GB, free: 11.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.6349, allocations: 79.86 kB / 0.5671 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6349, allocations: 0 / 0.5671 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.852e-05/0.635, allocations: 36.92 kB / 0.5671 GB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.6356, allocations: 52.84 kB / 0.5672 GB, free: 11.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.637, allocations: 433.8 kB / 0.5676 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.6374, allocations: 0.764 MB / 0.5684 GB, free: 10.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.6376, allocations: 75.41 kB / 0.5684 GB, free: 10.12 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6376, allocations: 3.938 kB / 0.5684 GB, free: 10.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.497/3.135, allocations: 3.69 MB / 0.572 GB, free: 6.422 MB / 410.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)