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.0009399/0.0009398, allocations: 84.88 kB / 16.31 MB, free: 6.461 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.001076/0.001076, allocations: 179.8 kB / 17.21 MB, free: 6.328 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.62/1.62, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3317/0.3317, allocations: 38.06 MB / 309.7 MB, free: 8.941 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.0005934/0.0005934, allocations: 14.19 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1392, allocations: 56.34 MB / 433 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006055/0.1453, allocations: 4.794 MB / 437.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.148, allocations: 1.63 MB / 439.4 MB, free: 152 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000335/0.1484, allocations: 27.81 kB / 439.4 MB, free: 124 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003476/0.1488, allocations: 111.2 kB / 439.5 MB, free: 12 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007149/0.1495, allocations: 278.5 kB / 439.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.1499, allocations: 135.8 kB / 439.9 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007953/0.1507, allocations: 0.6109 MB / 440.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004462/0.1512, allocations: 284.4 kB / 440.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.1515, allocations: 191.1 kB / 441 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.1518, allocations: 219.2 kB / 441.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.1519, allocations: 20 kB / 441.2 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.745e-05/0.1519, allocations: 20 kB / 441.2 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.1521, allocations: 99.64 kB / 441.3 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1522, allocations: 105.5 kB / 441.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003614/0.1525, allocations: 390.8 kB / 441.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1526, allocations: 0 / 441.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1526, allocations: 0 / 441.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1526, allocations: 0 / 441.8 MB, free: 13.68 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.001108/0.1537, allocations: 0.6406 MB / 442.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.1538, allocations: 12.03 kB / 442.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.117e-05/0.1539, allocations: 74.53 kB / 442.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.056e-05/0.1539, allocations: 51.45 kB / 442.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.1545, allocations: 383 kB / 443 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.669e-05/0.1546, allocations: 62.69 kB / 443 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.1547, allocations: 40 kB / 443.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.1553, allocations: 432 kB / 443.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.1554, allocations: 7.953 kB / 443.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.1554, allocations: 16 kB / 443.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1554, allocations: 8 kB / 443.5 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.1559, allocations: 274 kB / 443.8 MB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.158, allocations: 1.845 MB / 445.6 MB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.1584, allocations: 183.6 kB / 445.8 MB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1585, allocations: 78.84 kB / 445.9 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.1585, allocations: 7.938 kB / 445.9 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.1586, allocations: 42.55 kB / 445.9 MB, free: 9.246 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.1586, allocations: 0 / 445.9 MB, free: 9.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001286/0.1599, allocations: 0.7021 MB / 446.6 MB, free: 8.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.951e-05/0.16, allocations: 106.8 kB / 446.8 MB, free: 8.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.1603, allocations: 316.4 kB / 447.1 MB, free: 8.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.1603, allocations: 33.64 kB / 447.1 MB, free: 8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.1605, allocations: 239.5 kB / 447.3 MB, free: 7.758 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.1606, allocations: 74.95 kB / 447.4 MB, free: 7.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.1606, allocations: 12.06 kB / 447.4 MB, free: 7.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1608, allocations: 338.8 kB / 447.7 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.1609, allocations: 76.61 kB / 447.8 MB, free: 7.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/0.1612, allocations: 201.7 kB / 448 MB, free: 7.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.1614, allocations: 104.8 kB / 448.1 MB, free: 6.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1614, allocations: 4 kB / 448.1 MB, free: 6.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005144/0.162, allocations: 330.1 kB / 448.4 MB, free: 6.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.162, allocations: 8 kB / 448.5 MB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.162, allocations: 4 kB / 448.5 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.162, allocations: 8 kB / 448.5 MB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1623, allocations: 79.89 kB / 448.5 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.1623, allocations: 7.938 kB / 448.6 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.1625, allocations: 15.91 kB / 448.6 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.1625, allocations: 16 kB / 448.6 MB, free: 6.434 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000203/0.1628, allocations: 189.7 kB / 448.8 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.1628, allocations: 31.62 kB / 448.8 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004125/0.1632, allocations: 192.7 kB / 449 MB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.1633, allocations: 4 kB / 449 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.1633, allocations: 0 / 449 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1633, allocations: 7.984 kB / 449 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009111/0.1642, allocations: 0.62 MB / 449.6 MB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.1642, allocations: 4 kB / 449.6 MB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002181/0.1644, allocations: 39.97 kB / 449.7 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1645, allocations: 0 / 449.7 MB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.1645, allocations: 8 kB / 449.7 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1645, allocations: 4.031 kB / 449.7 MB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.1645, allocations: 7.938 kB / 449.7 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.1652, allocations: 452 kB / 450.1 MB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.694e-05/0.1653, allocations: 108.8 kB / 450.2 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.1653, allocations: 4 kB / 450.2 MB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.1655, allocations: 8 kB / 450.2 MB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.743e-05/0.1656, allocations: 11.98 kB / 450.3 MB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.1656, allocations: 12 kB / 450.3 MB, free: 4.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002237/0.1658, allocations: 219 kB / 450.5 MB, free: 4.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1658, allocations: 3.938 kB / 450.5 MB, free: 4.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.1662, allocations: 72 kB / 450.6 MB, free: 4.348 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 (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.0009666/0.1672, allocations: 0.9906 MB / 451.5 MB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004003/0.1676, allocations: 192.7 kB / 451.7 MB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1677, allocations: 256 / 451.7 MB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.1678, allocations: 87.75 kB / 451.8 MB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006579/0.1685, allocations: 89.31 kB / 451.9 MB, free: 2.961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.1718, allocations: 2.26 MB / 454.2 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2401/0.4119, allocations: 0.8106 MB / 455 MB, free: 50.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.4122, allocations: 43.94 kB / 455 MB, free: 50.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.4124, allocations: 120.6 kB / 455.1 MB, free: 50.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4124, allocations: 0 / 455.1 MB, free: 50.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01683/0.4292, allocations: 6.451 MB / 461.6 MB, free: 50.47 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001224/0.4294, allocations: 185.5 kB / 461.8 MB, free: 50.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.8/2.229, allocations: 0 / 461.8 MB, free: 50.23 MB / 382.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/linux/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) Environment - environmentSimulation: