Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",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.001298/0.001297, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001296/0.001296, allocations: 189.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1725/0.1725, allocations: 38.03 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 65.92 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 58.06 MB / 456.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.00723/0.1199, allocations: 6.213 MB / 462.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006511/0.1265, allocations: 4.421 MB / 467.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007962/0.1273, allocations: 39.75 kB / 467.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008857/0.1362, allocations: 4.903 MB / 472 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.1372, allocations: 330.6 kB / 472.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.138, allocations: 223.6 kB / 472.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002036/0.14, allocations: 1.602 MB / 474.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006536/0.1407, allocations: 400.2 kB / 474.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006221/0.1413, allocations: 386.5 kB / 474.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007126/0.1421, allocations: 466.3 kB / 475.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1422, allocations: 48 kB / 475.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00032/0.1425, allocations: 123.8 kB / 475.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.1428, allocations: 275.3 kB / 475.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003595/0.1432, allocations: 330.3 kB / 476.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009021/0.1441, allocations: 0.7397 MB / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1441, allocations: 0 / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1441, allocations: 0 / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.1441, allocations: 0 / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001995/0.1461, allocations: 0.9017 MB / 477.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1462, allocations: 15.89 kB / 477.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.1463, allocations: 90.69 kB / 477.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004838/0.1468, allocations: 100 kB / 478 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.1479, allocations: 0.533 MB / 478.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.1479, allocations: 33 kB / 478.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.596e-05/0.148, allocations: 51.98 kB / 478.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009579/0.149, allocations: 0.6452 MB / 479.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.149, allocations: 0 / 479.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-05/0.1491, allocations: 27.97 kB / 479.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.1492, allocations: 48.97 kB / 479.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.1501, allocations: 499.5 kB / 479.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003822/0.1539, allocations: 2.539 MB / 482.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.1544, allocations: 319.5 kB / 482.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.1547, allocations: 182.5 kB / 482.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/0.1547, allocations: 4.5 kB / 482.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.1548, allocations: 34.56 kB / 482.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.053e-06/0.1548, allocations: 0 / 482.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002621/0.1574, allocations: 1.626 MB / 484.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.1575, allocations: 114.9 kB / 484.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.158, allocations: 421.8 kB / 485 MB, free: 11.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.1581, allocations: 33.7 kB / 485.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.1583, allocations: 307.5 kB / 485.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.1584, allocations: 122.3 kB / 485.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.1586, allocations: 90.16 kB / 485.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1587, allocations: 362.7 kB / 485.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.1589, allocations: 169 kB / 486.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.1593, allocations: 304.3 kB / 486.4 MB, free: 9.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.1599, allocations: 491.7 kB / 486.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1599, allocations: 0 / 486.9 MB, free: 9.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001269/0.1612, allocations: 0.7992 MB / 487.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1612, allocations: 4 kB / 487.7 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1612, allocations: 4.375 kB / 487.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006223/0.1618, allocations: 216.6 kB / 487.9 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003098/0.1622, allocations: 83.88 kB / 488 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/0.1666, allocations: 4.226 MB / 492.2 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.1669, allocations: 19.98 kB / 492.2 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.167, allocations: 20 kB / 492.2 MB, free: 3.508 MB / 366.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): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003089/0.1673, allocations: 231.7 kB / 492.5 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1674, allocations: 55.36 kB / 492.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009072/0.1683, allocations: 0.634 MB / 493.2 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1683, allocations: 4 kB / 493.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1683, allocations: 4 kB / 493.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1683, allocations: 0 / 493.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.1701, allocations: 1.195 MB / 494.4 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.1701, allocations: 4 kB / 494.4 MB, free: 1.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/0.1705, allocations: 71.89 kB / 494.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001634/0.1707, allocations: 57.73 kB / 494.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.1707, allocations: 11.98 kB / 494.5 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/0.1726, allocations: 2.839 MB / 497.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1727, allocations: 0 / 497.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1738, allocations: 0.953 MB / 498.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.174, allocations: 144.4 kB / 498.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.1741, allocations: 19.98 kB / 498.4 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.1743, allocations: 12 kB / 498.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.954e-05/0.1744, allocations: 31.89 kB / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.1745, allocations: 8 kB / 498.5 MB, free: 12.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003284/0.1748, allocations: 295.1 kB / 498.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1748, allocations: 0 / 498.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006446/0.1754, allocations: 128 kB / 498.9 MB, free: 12.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001535/0.177, allocations: 1.51 MB / 0.4887 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.1785, allocations: 0.7783 MB / 0.4895 GB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1785, allocations: 0 / 0.4895 GB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005209/0.179, allocations: 422 kB / 0.4899 GB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.1798, allocations: 125.2 kB / 0.49 GB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007728/0.1875, allocations: 5.814 MB / 0.4957 GB, free: 3.266 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.1881, allocations: 0.9483 MB / 0.4966 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00035/0.1884, allocations: 96.38 kB / 0.4967 GB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002586/0.1887, allocations: 195.4 kB / 0.4969 GB, free: 2.004 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1887, allocations: 0 / 0.4969 GB, free: 2.004 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03791/0.2266, allocations: 11.9 MB / 0.5085 GB, free: 6.293 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/0.2269, allocations: 235.3 kB / 0.5087 GB, free: 6.031 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.331, allocations: 0 / 0.5087 GB, free: 6.031 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)