Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001382, allocations: 114 kB / 17.06 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 198.9 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.171/0.171, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1213, allocations: 55.25 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006279/0.1276, allocations: 4.791 MB / 491.4 MB, free: 4.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.1299, allocations: 1.535 MB / 492.9 MB, free: 2.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003277/0.1303, allocations: 15.94 kB / 493 MB, free: 2.465 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004098/0.1307, allocations: 103.2 kB / 493.1 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007674/0.1315, allocations: 274.3 kB / 493.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.132, allocations: 135.8 kB / 493.5 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009871/0.133, allocations: 0.5838 MB / 494 MB, free: 1.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006075/0.1336, allocations: 398.6 kB / 494.4 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.1341, allocations: 239.1 kB / 494.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005233/0.1346, allocations: 235 kB / 494.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.779e-05/0.1347, allocations: 36 kB / 494.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1349, allocations: 43.94 kB / 495 MB, free: 452 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001607/0.135, allocations: 123.6 kB / 495.1 MB, free: 328 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002906/0.1353, allocations: 226.9 kB / 495.3 MB, free: 100 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.136, allocations: 0.51 MB / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.136, allocations: 0 / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.136, allocations: 0 / 495.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.136, allocations: 0 / 495.8 MB, free: 15.59 MB / 382.1 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.001321/0.1373, allocations: 0.6992 MB / 496.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1374, allocations: 15.89 kB / 496.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.035e-05/0.1375, allocations: 70.72 kB / 496.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.042e-05/0.1376, allocations: 52.36 kB / 496.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.1382, allocations: 423.8 kB / 497.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.691e-05/0.1383, allocations: 58.69 kB / 497.1 MB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.956e-05/0.1384, allocations: 36 kB / 497.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007117/0.1391, allocations: 432.1 kB / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.1391, allocations: 0 / 497.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/0.1392, allocations: 12 kB / 497.6 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1392, allocations: 8 kB / 497.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005378/0.1397, allocations: 274 kB / 497.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.1419, allocations: 1.841 MB / 499.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.1422, allocations: 175.6 kB / 499.9 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1424, allocations: 74.67 kB / 500 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.1424, allocations: 4 kB / 500 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1425, allocations: 42.48 kB / 500 MB, free: 11.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.1425, allocations: 0 / 500 MB, free: 11.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001325/0.1438, allocations: 0.7058 MB / 0.489 GB, free: 10.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.1439, allocations: 106.8 kB / 0.4891 GB, free: 10.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/0.1442, allocations: 320.6 kB / 0.4894 GB, free: 9.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.1442, allocations: 33.7 kB / 0.4894 GB, free: 9.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.1445, allocations: 235.7 kB / 0.4896 GB, free: 9.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.1445, allocations: 74.94 kB / 0.4897 GB, free: 9.535 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-05/0.1446, allocations: 65.94 kB / 0.4898 GB, free: 9.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1448, allocations: 342.8 kB / 0.4901 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.1449, allocations: 68.62 kB / 0.4902 GB, free: 9.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.1451, allocations: 209.4 kB / 0.4904 GB, free: 8.793 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/0.1457, allocations: 296 kB / 0.4906 GB, free: 8.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1457, allocations: 0 / 0.4906 GB, free: 8.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008285/0.1466, allocations: 329.1 kB / 0.491 GB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1466, allocations: 11.94 kB / 0.491 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1466, allocations: 4 kB / 0.491 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1466, allocations: 4 kB / 0.491 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/0.1469, allocations: 75.84 kB / 0.491 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.147, allocations: 11.98 kB / 0.4911 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1471, allocations: 12 kB / 0.4911 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.1472, allocations: 20.22 kB / 0.4911 GB, free: 7.98 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001733/0.1474, allocations: 181.7 kB / 0.4913 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.719e-05/0.1474, allocations: 39.5 kB / 0.4913 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.1479, allocations: 192.7 kB / 0.4915 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1479, allocations: 0 / 0.4915 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1479, allocations: 4 kB / 0.4915 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1479, allocations: 0 / 0.4915 GB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008438/0.1488, allocations: 0.6162 MB / 0.4921 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1488, allocations: 0 / 0.4921 GB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.149, allocations: 47.91 kB / 0.4921 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.149, allocations: 4 kB / 0.4921 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.149, allocations: 0 / 0.4921 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1491, allocations: 4 kB / 0.4921 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1491, allocations: 0 / 0.4921 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006708/0.1497, allocations: 459.8 kB / 0.4926 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-05/0.1498, allocations: 100.7 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.1499, allocations: 12.03 kB / 0.4927 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.1501, allocations: 8 kB / 0.4927 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.1502, allocations: 15.92 kB / 0.4927 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.1502, allocations: 8 kB / 0.4927 GB, free: 6.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.1504, allocations: 223 kB / 0.4929 GB, free: 5.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1504, allocations: 0 / 0.4929 GB, free: 5.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.1508, allocations: 72 kB / 0.493 GB, free: 5.902 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000766/0.1516, allocations: 0.9746 MB / 0.494 GB, free: 4.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003737/0.152, allocations: 196.7 kB / 0.4941 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.152, allocations: 0 / 0.4941 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.1521, allocations: 79.91 kB / 0.4942 GB, free: 4.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000636/0.1528, allocations: 114.9 kB / 0.4943 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.1571, allocations: 3.411 MB / 0.4977 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.1575, allocations: 0.8223 MB / 0.4985 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.1577, allocations: 47.25 kB / 0.4985 GB, free: 0 / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.1579, allocations: 123.5 kB / 0.4986 GB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1579, allocations: 0 / 0.4986 GB, free: 15.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.1842, allocations: 7.117 MB / 0.5056 GB, free: 8.703 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/7.989, allocations: 12.05 kB / 0.5056 GB, free: 8.691 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)