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.001596/0.0016, allocations: 183.9 kB / 15.77 MB, free: 6.375 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.987/1.987, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001134/0.001134, allocations: 86.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2666/0.2666, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006334/0.0006338, allocations: 15.98 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1051, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.00642/0.1116, allocations: 3.87 MB / 483 MB, free: 14.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002526/0.1141, allocations: 1.065 MB / 484.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.1145, allocations: 23.81 kB / 484.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.1146, allocations: 43.67 kB / 484.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006683/0.1153, allocations: 179.4 kB / 484.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.1157, allocations: 103.8 kB / 484.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004082/0.1161, allocations: 207.5 kB / 484.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.1164, allocations: 72.77 kB / 484.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.1167, allocations: 123.5 kB / 484.8 MB, free: 12.23 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.117, allocations: 127.5 kB / 484.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.822e-05/0.1171, allocations: 8 kB / 484.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.688e-05/0.1171, allocations: 15.94 kB / 485 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.1173, allocations: 63.81 kB / 485 MB, free: 12.02 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1174, allocations: 69.58 kB / 485.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.1177, allocations: 187.5 kB / 485.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1177, allocations: 4 kB / 485.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.529e-06/0.1177, allocations: 0 / 485.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1177, allocations: 3.938 kB / 485.3 MB, free: 11.76 MB / 330.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.001056/0.1188, allocations: 0.5154 MB / 485.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1188, allocations: 8.031 kB / 485.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.465e-05/0.1189, allocations: 54.55 kB / 485.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.878e-05/0.119, allocations: 27.67 kB / 485.9 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005743/0.1196, allocations: 298.8 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.1196, allocations: 12.44 kB / 486.2 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.421e-05/0.1197, allocations: 23.98 kB / 486.2 MB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.1203, allocations: 269.8 kB / 486.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.1203, allocations: 0 / 486.5 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.1203, allocations: 8 kB / 486.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1204, allocations: 4 kB / 486.5 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004313/0.1208, allocations: 175.7 kB / 486.7 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.1227, allocations: 1.171 MB / 487.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.1229, allocations: 85.08 kB / 487.9 MB, free: 8.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.123, allocations: 0 / 487.9 MB, free: 8.891 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.123, allocations: 34.62 kB / 487.9 MB, free: 8.848 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/0.123, allocations: 4 kB / 487.9 MB, free: 8.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0009564/0.124, allocations: 408.8 kB / 488.3 MB, free: 8.391 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.1241, allocations: 77.11 kB / 488.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.1244, allocations: 250.4 kB / 488.7 MB, free: 8.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.1245, allocations: 29.7 kB / 488.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.1246, allocations: 238.2 kB / 488.9 MB, free: 7.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.1247, allocations: 47.59 kB / 489 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.005e-05/0.1247, allocations: 4 kB / 489 MB, free: 7.719 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1249, allocations: 314.8 kB / 489.3 MB, free: 7.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.649e-05/0.125, allocations: 28.36 kB / 489.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1251, allocations: 125.5 kB / 489.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.1253, allocations: 47.94 kB / 489.5 MB, free: 7.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1253, allocations: 0 / 489.5 MB, free: 7.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003785/0.1257, allocations: 169.6 kB / 489.6 MB, free: 6.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1257, allocations: 4 kB / 489.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1257, allocations: 4 kB / 489.7 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.1258, allocations: 8 kB / 489.7 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.1261, allocations: 43.92 kB / 489.7 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.1261, allocations: 7.984 kB / 489.7 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.1262, allocations: 7.953 kB / 489.7 MB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.1263, allocations: 12 kB / 489.7 MB, free: 6.902 MB / 330.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.0001898/0.1265, allocations: 145.8 kB / 489.9 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.1265, allocations: 23.81 kB / 489.9 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.1268, allocations: 99.28 kB / 490 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1268, allocations: 448 / 490 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1268, allocations: 0 / 490 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.1268, allocations: 11.97 kB / 490 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006533/0.1275, allocations: 423.5 kB / 490.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1275, allocations: 0 / 490.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.1277, allocations: 19.94 kB / 490.4 MB, free: 6.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.1277, allocations: 8.016 kB / 490.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.1277, allocations: 0 / 490.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.1278, allocations: 4 kB / 490.5 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.1278, allocations: 3.953 kB / 490.5 MB, free: 6.105 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004421/0.1282, allocations: 252.4 kB / 490.7 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1284, allocations: 96.86 kB / 490.8 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.1284, allocations: 3.953 kB / 490.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.1287, allocations: 4 kB / 490.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.1288, allocations: 7.984 kB / 490.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.1288, allocations: 4 kB / 490.8 MB, free: 5.691 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003414/0.1292, allocations: 166 kB / 491 MB, free: 5.531 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.875e-06/0.1292, allocations: 0 / 491 MB, free: 5.531 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007519/0.13, allocations: 43.94 kB / 491 MB, free: 5.488 MB / 330.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.001088/0.1311, allocations: 0.9287 MB / 491.9 MB, free: 4.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003663/0.1315, allocations: 87.91 kB / 492 MB, free: 4.434 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1315, allocations: 0 / 492 MB, free: 4.434 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1316, allocations: 23.94 kB / 492.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007995/0.1324, allocations: 53.47 kB / 492.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004994/0.1375, allocations: 3.482 MB / 495.6 MB, free: 0.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006229/0.1382, allocations: 0.768 MB / 496.4 MB, free: 15.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.1384, allocations: 75.36 kB / 496.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.472e-06/0.1384, allocations: 3.938 kB / 496.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.394/2.533, allocations: 3.723 MB / 0.4884 GB, free: 12.15 MB / 346.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)