Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001805/0.001809, allocations: 182.6 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.961/1.961, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001098/0.001098, allocations: 98.84 kB / 270.3 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2661/0.2661, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004721/0.0004724, allocations: 19.94 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.107, allocations: 56.32 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007929/0.115, allocations: 4.63 MB / 483.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003978/0.1191, allocations: 1.607 MB / 485.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005183/0.1196, allocations: 27.81 kB / 485.4 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004623/0.1201, allocations: 103.3 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1212, allocations: 271.1 kB / 485.8 MB, free: 11.28 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.1217, allocations: 139.8 kB / 485.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007656/0.1225, allocations: 351.3 kB / 486.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005229/0.1231, allocations: 276.4 kB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.1234, allocations: 187.4 kB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.1238, allocations: 171.3 kB / 486.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.1239, allocations: 20 kB / 486.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.184e-05/0.124, allocations: 23.94 kB / 486.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.1242, allocations: 91.67 kB / 487 MB, free: 10.04 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.1244, allocations: 105.5 kB / 487.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005644/0.1249, allocations: 387 kB / 487.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.125, allocations: 0 / 487.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.125, allocations: 4 kB / 487.5 MB, free: 9.547 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.125, allocations: 0 / 487.5 MB, free: 9.547 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001617/0.1266, allocations: 0.6444 MB / 488.1 MB, free: 8.855 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.1267, allocations: 11.97 kB / 488.1 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.1268, allocations: 74.53 kB / 488.2 MB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.1269, allocations: 51.39 kB / 488.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008136/0.1278, allocations: 375.1 kB / 488.6 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.1279, allocations: 58.69 kB / 488.7 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.414e-05/0.128, allocations: 39.94 kB / 488.7 MB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.1291, allocations: 432.1 kB / 489.1 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.573e-05/0.1291, allocations: 3.906 kB / 489.1 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.241e-05/0.1292, allocations: 16 kB / 489.2 MB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.1292, allocations: 15.95 kB / 489.2 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008916/0.1301, allocations: 277.9 kB / 489.5 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.1333, allocations: 1.849 MB / 491.3 MB, free: 5.461 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005314/0.1338, allocations: 179.7 kB / 491.5 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.1339, allocations: 4 kB / 491.5 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.1339, allocations: 38.62 kB / 491.5 MB, free: 5.207 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.815e-06/0.1339, allocations: 0 / 491.5 MB, free: 5.207 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001944/0.1359, allocations: 0.7062 MB / 492.2 MB, free: 4.445 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.136, allocations: 106.8 kB / 492.3 MB, free: 4.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/0.1365, allocations: 316.4 kB / 492.6 MB, free: 4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.1365, allocations: 33.64 kB / 492.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.1367, allocations: 293.9 kB / 493 MB, free: 3.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.713e-05/0.1368, allocations: 78.98 kB / 493 MB, free: 3.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.1369, allocations: 4.062 kB / 493 MB, free: 3.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.137, allocations: 326.8 kB / 493.4 MB, free: 3.262 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.1373, allocations: 68.62 kB / 493.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003853/0.1377, allocations: 197.8 kB / 493.6 MB, free: 2.945 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.1381, allocations: 104.8 kB / 493.7 MB, free: 2.844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1381, allocations: 4 kB / 493.7 MB, free: 2.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008999/0.139, allocations: 314.4 kB / 494 MB, free: 2.527 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.1391, allocations: 8 kB / 494 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.1391, allocations: 7.984 kB / 494 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.1391, allocations: 8 kB / 494.1 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005486/0.1397, allocations: 75.91 kB / 494.1 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/0.1397, allocations: 7.938 kB / 494.1 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/0.1401, allocations: 15.98 kB / 494.2 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.1401, allocations: 20 kB / 494.2 MB, free: 2.387 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * 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.0003051/0.1404, allocations: 177.7 kB / 494.3 MB, free: 2.203 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1406, allocations: 35.58 kB / 494.4 MB, free: 2.168 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006727/0.1412, allocations: 196.6 kB / 494.6 MB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.1413, allocations: 7.984 kB / 494.6 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1413, allocations: 0 / 494.6 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.1413, allocations: 4 kB / 494.6 MB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.1427, allocations: 0.6227 MB / 495.2 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.1428, allocations: 0 / 495.2 MB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.1432, allocations: 35.98 kB / 495.2 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.1432, allocations: 0 / 495.2 MB, free: 1.242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.1433, allocations: 11.98 kB / 495.3 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.1433, allocations: 4 kB / 495.3 MB, free: 1.227 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.1433, allocations: 7.969 kB / 495.3 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.1444, allocations: 493 kB / 495.7 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.1445, allocations: 100.7 kB / 495.8 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.672e-05/0.1446, allocations: 8 kB / 495.9 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.1449, allocations: 12.03 kB / 495.9 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.145, allocations: 15.94 kB / 495.9 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.145, allocations: 8 kB / 495.9 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.1454, allocations: 222.9 kB / 496.1 MB, free: 324 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1454, allocations: 0 / 496.1 MB, free: 324 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006088/0.146, allocations: 68 kB / 496.2 MB, free: 256 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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.001409/0.1474, allocations: 1.233 MB / 497.4 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.1482, allocations: 199.8 kB / 497.6 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1482, allocations: 0 / 497.6 MB, free: 14.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002874/0.1485, allocations: 83.84 kB / 497.7 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008219/0.1493, allocations: 82.58 kB / 497.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006254/0.1556, allocations: 4.983 MB / 0.491 GB, free: 9.492 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005742/0.1562, allocations: 0.8187 MB / 0.4918 GB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.1565, allocations: 123.4 kB / 0.4919 GB, free: 8.523 MB / 346.7 MB Notification: Performance of SimCode: time 1.031e-06/0.1565, allocations: 3.938 kB / 0.4919 GB, free: 8.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.44/2.596, allocations: 6.331 MB / 0.4981 GB, free: 2.184 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)