Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.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.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine",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.0009645/0.0009706, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.0009202/0.0009203, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.363/1.363, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1767/0.1767, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005373/0.0005375, allocations: 16 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2495, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.007835/0.2573, allocations: 10.4 MB / 443.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00643/0.2638, allocations: 4.222 MB / 447.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.2652, allocations: 75.44 kB / 447.6 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009103/0.2662, allocations: 350 kB / 447.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002238/0.2684, allocations: 0.7671 MB / 448.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.2701, allocations: 0.577 MB / 449.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001593/0.2717, allocations: 1.061 MB / 450.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.2738, allocations: 1.514 MB / 451.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009327/0.2747, allocations: 0.576 MB / 452.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008935/0.2756, allocations: 0.6229 MB / 453.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.2758, allocations: 60 kB / 453.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008107/0.2766, allocations: 403.4 kB / 453.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005086/0.2771, allocations: 0.5612 MB / 454.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003008/0.2774, allocations: 304.9 kB / 454.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.2791, allocations: 1.761 MB / 456.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.2791, allocations: 0 / 456.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2791, allocations: 8 kB / 456.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.2791, allocations: 0 / 456.1 MB, free: 11.47 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.002849/0.282, allocations: 1.548 MB / 457.7 MB, free: 9.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.2821, allocations: 8.031 kB / 457.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002232/0.2823, allocations: 194.3 kB / 457.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.2839, allocations: 301.8 kB / 458.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.2859, allocations: 1.031 MB / 459.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.521e-05/0.2859, allocations: 90.34 kB / 459.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002905/0.2862, allocations: 151.8 kB / 459.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.2886, allocations: 1.682 MB / 461.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/0.2887, allocations: 4 kB / 461.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.2888, allocations: 44 kB / 461.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/0.2891, allocations: 106.4 kB / 461.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002275/0.2914, allocations: 1.426 MB / 462.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008571/0.3, allocations: 6.096 MB / 468.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.3013, allocations: 0.7211 MB / 469.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.952e-05/0.3013, allocations: 20.61 kB / 469.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.3014, allocations: 51.14 kB / 469.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 3.176e-06/0.3014, allocations: 4 kB / 469.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.008871/0.3103, allocations: 4.386 MB / 474 MB, free: 8.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3104, allocations: 162.9 kB / 474.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.3116, allocations: 0.8376 MB / 475 MB, free: 7.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.3116, allocations: 41.7 kB / 475 MB, free: 7.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004872/0.3121, allocations: 0.6312 MB / 475.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002798/0.3124, allocations: 299.7 kB / 475.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.3125, allocations: 24 kB / 476 MB, free: 6.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3127, allocations: 353.9 kB / 476.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007558/0.3134, allocations: 482.3 kB / 476.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009824/0.3144, allocations: 0.7619 MB / 477.5 MB, free: 5.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/0.3153, allocations: 0.6042 MB / 478.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3153, allocations: 0 / 478.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003593/0.3189, allocations: 1.886 MB / 480 MB, free: 2.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001363/0.3203, allocations: 3.227 MB / 483.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002922/0.3232, allocations: 1.499 MB / 484.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/0.3252, allocations: 0.5583 MB / 485.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/0.3267, allocations: 491.3 kB / 485.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/0.3416, allocations: 13.47 MB / 499.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.3426, allocations: 72.14 kB / 499.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.306e-05/0.3427, allocations: 40 kB / 499.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.3428, allocations: 4 kB / 499.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003277/0.346, allocations: 1.714 MB / 0.4894 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002737/0.3488, allocations: 1.425 MB / 0.4907 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/0.3507, allocations: 0.5661 MB / 0.4913 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007643/0.3514, allocations: 223.7 kB / 0.4915 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/0.3625, allocations: 10.33 MB / 0.5016 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.3637, allocations: 51.97 kB / 0.5017 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.63e-05/0.3638, allocations: 47.98 kB / 0.5017 GB, free: 15 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (118): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0009495/0.3647, allocations: 0.5045 MB / 0.5022 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.3649, allocations: 98.78 kB / 0.5023 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.3674, allocations: 1.417 MB / 0.5037 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.3674, allocations: 8 kB / 0.5037 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3674, allocations: 4 kB / 0.5037 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3675, allocations: 7.969 kB / 0.5037 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.3725, allocations: 2.85 MB / 0.5065 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.3725, allocations: 4 kB / 0.5065 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.3731, allocations: 135.8 kB / 0.5066 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.3741, allocations: 395.9 kB / 0.507 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/0.3742, allocations: 35.88 kB / 0.507 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2463/0.6205, allocations: 8.757 MB / 0.5156 GB, free: 81.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/0.6206, allocations: 7.156 kB / 0.5156 GB, free: 81.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004095/0.6247, allocations: 2.056 MB / 0.5176 GB, free: 81 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006707/0.6254, allocations: 263.5 kB / 0.5178 GB, free: 80.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.6255, allocations: 25.31 kB / 0.5179 GB, free: 80.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000555/0.6261, allocations: 48.25 kB / 0.5179 GB, free: 80.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.6263, allocations: 74.05 kB / 0.518 GB, free: 80.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-05/0.6264, allocations: 25.81 kB / 0.518 GB, free: 80.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008368/0.6272, allocations: 0.5703 MB / 0.5186 GB, free: 80.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6272, allocations: 1.219 kB / 0.5186 GB, free: 80.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002418/0.6296, allocations: 0.6404 MB / 0.5192 GB, free: 80.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.rotor.phi,turboGen.rotor.w,RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * 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 (65): * Single equations (assignments): 59 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00362/0.6333, allocations: 3.416 MB / 0.5225 GB, free: 79.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006083/0.6394, allocations: 3.519 MB / 0.526 GB, free: 77.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.6394, allocations: 2.938 kB / 0.526 GB, free: 77.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/0.6414, allocations: 1.174 MB / 0.5271 GB, free: 76.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.6427, allocations: 207.5 kB / 0.5273 GB, free: 76.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006856/0.6496, allocations: 9.918 MB / 0.537 GB, free: 68.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009252/0.6505, allocations: 1.367 MB / 0.5383 GB, free: 67.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001038/0.6516, allocations: 354.1 kB / 0.5387 GB, free: 67.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005271/0.6521, allocations: 0.4892 MB / 0.5391 GB, free: 67.46 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6521, allocations: 0 / 0.5391 GB, free: 67.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04451/0.6966, allocations: 30.36 MB / 0.5688 GB, free: 40.02 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.6968, allocations: 221 kB / 0.569 GB, free: 39.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.179, allocations: 0 / 0.569 GB, free: 39.78 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurboGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe 2>&1) Environment - environmentSimulation: