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.001073/0.001073, allocations: 110.5 kB / 16.51 MB, free: 6.707 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.001229/0.001229, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.388/1.388, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1674/0.1674, allocations: 37.99 MB / 308.6 MB, free: 6.234 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.001334/0.001334, allocations: 67.03 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2374, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005182/0.2426, allocations: 5.181 MB / 435.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.2447, allocations: 1.73 MB / 436.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.245, allocations: 27.81 kB / 436.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004265/0.2455, allocations: 103.3 kB / 437 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.2461, allocations: 238.7 kB / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.2463, allocations: 99.89 kB / 437.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005751/0.2469, allocations: 0.6423 MB / 438 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001981/0.2471, allocations: 135.5 kB / 438.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.2473, allocations: 171.2 kB / 438.3 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.2475, allocations: 215.1 kB / 438.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.2476, allocations: 20 kB / 438.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.2476, allocations: 20 kB / 438.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.026e-05/0.2477, allocations: 95.69 kB / 438.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.2479, allocations: 175 kB / 438.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.2481, allocations: 370.6 kB / 439.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2482, allocations: 4 kB / 439.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2482, allocations: 3.984 kB / 439.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.2482, allocations: 0 / 439.2 MB, free: 10.53 MB / 318.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.0009184/0.2491, allocations: 0.6555 MB / 439.8 MB, free: 9.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.2491, allocations: 12.03 kB / 439.8 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.332e-05/0.2492, allocations: 62.72 kB / 439.9 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.2493, allocations: 44.47 kB / 439.9 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.2497, allocations: 379.4 kB / 440.3 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.2498, allocations: 24.5 kB / 440.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.2498, allocations: 39.83 kB / 440.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.2502, allocations: 334.2 kB / 440.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.2502, allocations: 0 / 440.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.2502, allocations: 12 kB / 440.7 MB, free: 8.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2503, allocations: 4 kB / 440.7 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.2505, allocations: 205.5 kB / 440.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.2517, allocations: 1.498 MB / 442.4 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.252, allocations: 194.4 kB / 442.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.017e-05/0.2521, allocations: 82.41 kB / 442.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.2521, allocations: 4 kB / 442.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.2522, allocations: 34.56 kB / 442.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.2522, allocations: 0 / 442.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008702/0.253, allocations: 0.69 MB / 443.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.2531, allocations: 132.5 kB / 443.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.2533, allocations: 313.6 kB / 443.8 MB, free: 5.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.2533, allocations: 33.7 kB / 443.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.016e-05/0.2534, allocations: 211.8 kB / 444.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.297e-05/0.2535, allocations: 63.09 kB / 444.1 MB, free: 5.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.934e-05/0.2535, allocations: 53.8 kB / 444.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.534e-05/0.2536, allocations: 346.8 kB / 444.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.798e-05/0.2537, allocations: 47.98 kB / 444.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.2538, allocations: 148.8 kB / 444.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.254, allocations: 220.8 kB / 444.9 MB, free: 4.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.254, allocations: 4 kB / 444.9 MB, free: 4.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000282/0.2543, allocations: 252.9 kB / 445.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2543, allocations: 8 kB / 445.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2543, allocations: 8.359 kB / 445.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.2544, allocations: 15.94 kB / 445.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.2547, allocations: 71.91 kB / 445.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006037/0.2553, allocations: 1.286 MB / 446.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.2554, allocations: 8 kB / 446.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.2555, allocations: 16 kB / 446.6 MB, free: 2.445 MB / 318.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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.2556, allocations: 161.7 kB / 446.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.824e-05/0.2557, allocations: 39.55 kB / 446.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002616/0.256, allocations: 180.6 kB / 447 MB, free: 2.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.256, allocations: 4 kB / 447 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.256, allocations: 3.984 kB / 447 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.256, allocations: 15.92 kB / 447 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000621/0.2566, allocations: 0.545 MB / 447.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2566, allocations: 0 / 447.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.2568, allocations: 39.92 kB / 447.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.2568, allocations: 4.031 kB / 447.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.2569, allocations: 11.98 kB / 447.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2569, allocations: 4 kB / 447.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2569, allocations: 0 / 447.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.2572, allocations: 496.3 kB / 448.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.2573, allocations: 112.8 kB / 448.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.2573, allocations: 4 kB / 448.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.2575, allocations: 8 kB / 448.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.2575, allocations: 11.92 kB / 448.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.2576, allocations: 7.938 kB / 448.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.2577, allocations: 227.2 kB / 448.5 MB, free: 496 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2577, allocations: 0 / 448.5 MB, free: 496 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003817/0.2581, allocations: 56 kB / 448.5 MB, free: 440 kB / 318.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 (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.0006224/0.2587, allocations: 1.028 MB / 449.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.2591, allocations: 164 kB / 449.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2591, allocations: 0 / 449.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.2592, allocations: 67.91 kB / 449.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007063/0.2599, allocations: 90 kB / 449.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.2637, allocations: 3.401 MB / 453.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.264, allocations: 0.8029 MB / 454.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.2642, allocations: 50.94 kB / 454.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.2644, allocations: 111.4 kB / 454.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2644, allocations: 4 kB / 454.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.2817, allocations: 6.325 MB / 460.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.2819, allocations: 201.2 kB / 460.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.15, allocations: 0 / 460.7 MB, free: 3.922 MB / 334.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/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)