Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.0009254/0.0009255, allocations: 89.03 kB / 16.31 MB, free: 5.672 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.0009869/0.0009871, allocations: 175.8 kB / 17.2 MB, free: 5.59 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.668/1.668, allocations: 205.4 MB / 223.4 MB, free: 5.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3161/0.3161, allocations: 38.06 MB / 309.7 MB, free: 9.027 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.0005334/0.0005335, allocations: 16 kB / 376.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1259, allocations: 56.34 MB / 433 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005537/0.1315, allocations: 4.559 MB / 437.5 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.1342, allocations: 1.626 MB / 439.1 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005311/0.1348, allocations: 27.81 kB / 439.2 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004736/0.1353, allocations: 115.3 kB / 439.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009362/0.1363, allocations: 286.3 kB / 439.6 MB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.1367, allocations: 123.8 kB / 439.7 MB, free: 108 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006754/0.1373, allocations: 0.5448 MB / 440.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002648/0.1376, allocations: 109.7 kB / 440.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.1378, allocations: 167.2 kB / 440.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.1381, allocations: 195.2 kB / 440.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1382, allocations: 16 kB / 440.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.524e-05/0.1383, allocations: 12 kB / 440.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1384, allocations: 91.7 kB / 440.8 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.042e-05/0.1385, allocations: 93.52 kB / 440.9 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.1388, allocations: 283.2 kB / 441.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1388, allocations: 0 / 441.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1388, allocations: 0 / 441.2 MB, free: 14.6 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1388, allocations: 0 / 441.2 MB, free: 14.6 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.000957/0.1398, allocations: 0.6048 MB / 441.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.1398, allocations: 8.031 kB / 441.8 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.761e-05/0.1399, allocations: 62.53 kB / 441.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.14, allocations: 39.53 kB / 441.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005986/0.1406, allocations: 362.6 kB / 442.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.1406, allocations: 24.55 kB / 442.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.1407, allocations: 28 kB / 442.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.1412, allocations: 330.2 kB / 442.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.1413, allocations: 4 kB / 442.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1413, allocations: 15.95 kB / 442.6 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.1413, allocations: 11.94 kB / 442.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.1417, allocations: 201.5 kB / 442.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.1434, allocations: 1.494 MB / 444.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004176/0.1438, allocations: 206.2 kB / 444.5 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.144, allocations: 75.53 kB / 444.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.144, allocations: 7.953 kB / 444.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.1441, allocations: 42.5 kB / 444.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.1441, allocations: 0 / 444.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001195/0.1453, allocations: 0.6781 MB / 445.3 MB, free: 10.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.382e-05/0.1454, allocations: 136.5 kB / 445.5 MB, free: 9.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.1457, allocations: 309.7 kB / 445.8 MB, free: 9.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1457, allocations: 30.08 kB / 445.8 MB, free: 9.578 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.1459, allocations: 219.8 kB / 446 MB, free: 9.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.146, allocations: 63.09 kB / 446.1 MB, free: 9.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/0.146, allocations: 4 kB / 446.1 MB, free: 9.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1461, allocations: 346.8 kB / 446.4 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.384e-05/0.1462, allocations: 43.98 kB / 446.5 MB, free: 8.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.1464, allocations: 144.8 kB / 446.6 MB, free: 8.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.1465, allocations: 79.86 kB / 446.7 MB, free: 8.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1465, allocations: 4 kB / 446.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003432/0.1468, allocations: 253.1 kB / 446.9 MB, free: 8.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1469, allocations: 4 kB / 446.9 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.1469, allocations: 4 kB / 446.9 MB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1469, allocations: 8 kB / 446.9 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.1472, allocations: 79.89 kB / 447 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007947/0.148, allocations: 1.286 MB / 448.3 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.1482, allocations: 8 kB / 448.3 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.1482, allocations: 12 kB / 448.3 MB, free: 6.852 MB / 382.1 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000156/0.1484, allocations: 169.9 kB / 448.5 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.806e-05/0.1485, allocations: 39.52 kB / 448.5 MB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.1488, allocations: 188.4 kB / 448.7 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.1488, allocations: 4 kB / 448.7 MB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1488, allocations: 4 kB / 448.7 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.1488, allocations: 7.938 kB / 448.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.1496, allocations: 0.5374 MB / 449.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1496, allocations: 4 kB / 449.3 MB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.1498, allocations: 39.92 kB / 449.3 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.1498, allocations: 3.938 kB / 449.3 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1498, allocations: 11.94 kB / 449.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1498, allocations: 0 / 449.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1499, allocations: 4 kB / 449.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000491/0.1504, allocations: 494.4 kB / 449.8 MB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/0.1504, allocations: 108.7 kB / 449.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.1505, allocations: 8 kB / 449.9 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.1507, allocations: 0 / 449.9 MB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.085e-05/0.1508, allocations: 15.98 kB / 449.9 MB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.1508, allocations: 8 kB / 450 MB, free: 5.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.151, allocations: 223.2 kB / 450.2 MB, free: 4.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.151, allocations: 0 / 450.2 MB, free: 4.898 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003896/0.1514, allocations: 56 kB / 450.2 MB, free: 4.844 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.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 (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.0006741/0.1521, allocations: 1.024 MB / 451.3 MB, free: 3.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000346/0.1524, allocations: 155.8 kB / 451.4 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1525, allocations: 0 / 451.4 MB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.1526, allocations: 68.73 kB / 451.5 MB, free: 3.566 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006863/0.1533, allocations: 89.41 kB / 451.6 MB, free: 3.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.1561, allocations: 2.084 MB / 453.6 MB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.1565, allocations: 0.8031 MB / 454.4 MB, free: 480 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001889/0.1567, allocations: 58.94 kB / 454.5 MB, free: 416 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.1569, allocations: 107.4 kB / 454.6 MB, free: 308 kB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1569, allocations: 0 / 454.6 MB, free: 308 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2026/0.3595, allocations: 6.195 MB / 460.8 MB, free: 50.32 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.3597, allocations: 190 kB / 461 MB, free: 50.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.108, allocations: 0 / 461 MB, free: 50.08 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: