Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",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.00136/0.00136, allocations: 101.9 kB / 16.5 MB, free: 6.641 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.001242/0.001242, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.412/1.412, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1697/0.1697, allocations: 37.99 MB / 308.6 MB, free: 6.242 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.001425/0.001425, allocations: 63.91 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2615, allocations: 55.25 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005388/0.267, allocations: 5.351 MB / 435.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003086/0.2701, allocations: 2.673 MB / 438 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000274/0.2704, allocations: 19.94 kB / 438 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.2714, allocations: 406.5 kB / 438.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000812/0.2723, allocations: 486.3 kB / 438.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006252/0.2729, allocations: 263.4 kB / 439.1 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007941/0.2737, allocations: 1.13 MB / 440.3 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004358/0.2741, allocations: 304.3 kB / 440.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.2744, allocations: 278.8 kB / 440.8 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.2748, allocations: 342.8 kB / 441.2 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.2748, allocations: 28 kB / 441.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008505/0.2757, allocations: 0.7755 MB / 442 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.2758, allocations: 191.5 kB / 442.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.276, allocations: 234.8 kB / 442.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006789/0.2767, allocations: 0.7944 MB / 443.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2767, allocations: 0 / 443.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.2767, allocations: 0 / 443.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2767, allocations: 4 kB / 443.2 MB, free: 6.48 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0009801/0.2777, allocations: 0.776 MB / 444 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.2778, allocations: 12.03 kB / 444 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.067e-05/0.2779, allocations: 86.7 kB / 444.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.2795, allocations: 200.1 kB / 444.3 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.2799, allocations: 358.4 kB / 444.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.2799, allocations: 37.36 kB / 444.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-05/0.28, allocations: 48.27 kB / 444.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007778/0.2808, allocations: 0.6225 MB / 445.3 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.2808, allocations: 7.984 kB / 445.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.2808, allocations: 19.98 kB / 445.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-05/0.2809, allocations: 32.92 kB / 445.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007612/0.2817, allocations: 0.6128 MB / 446 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002488/0.2842, allocations: 2.253 MB / 448.2 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.2847, allocations: 498.3 kB / 448.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.285, allocations: 233.7 kB / 449 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.026e-05/0.285, allocations: 7.984 kB / 449 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.2851, allocations: 42.5 kB / 449 MB, free: 380 kB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.024e-06/0.2851, allocations: 4 kB / 449 MB, free: 376 kB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.003388/0.2885, allocations: 1.708 MB / 450.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.2885, allocations: 81.11 kB / 450.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003138/0.2888, allocations: 279.1 kB / 451.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.928e-05/0.2889, allocations: 37.7 kB / 451.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001776/0.2891, allocations: 228 kB / 451.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2892, allocations: 145.8 kB / 451.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2894, allocations: 94.14 kB / 451.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2895, allocations: 346.7 kB / 451.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.2898, allocations: 177 kB / 452.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.2902, allocations: 294.3 kB / 452.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006406/0.2908, allocations: 0.4966 MB / 452.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2908, allocations: 0 / 452.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001133/0.2919, allocations: 0.6848 MB / 453.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.292, allocations: 8 kB / 453.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.292, allocations: 4 kB / 453.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/0.2926, allocations: 173 kB / 453.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003478/0.2929, allocations: 91.89 kB / 453.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00331/0.2963, allocations: 2.535 MB / 456.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.2965, allocations: 23.98 kB / 456.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.2966, allocations: 16 kB / 456.4 MB, free: 8.613 MB / 334.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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002301/0.2968, allocations: 197.9 kB / 456.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.2969, allocations: 43.47 kB / 456.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.2981, allocations: 0.645 MB / 457.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2981, allocations: 4 kB / 457.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2981, allocations: 4 kB / 457.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.2981, allocations: 3.984 kB / 457.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.3002, allocations: 1.348 MB / 458.6 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3002, allocations: 4 kB / 458.6 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003389/0.3006, allocations: 79.95 kB / 458.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004531/0.301, allocations: 140.7 kB / 458.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.3011, allocations: 11.98 kB / 458.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002644/0.3037, allocations: 2.307 MB / 461.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3037, allocations: 0 / 461.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.3052, allocations: 0.9601 MB / 462.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.3053, allocations: 108.8 kB / 462.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/0.3054, allocations: 12 kB / 462.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.3056, allocations: 11.98 kB / 462.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.3057, allocations: 39.95 kB / 462.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.3057, allocations: 15.94 kB / 462.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.3059, allocations: 201.9 kB / 462.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3059, allocations: 0 / 462.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006101/0.3065, allocations: 140 kB / 462.6 MB, free: 2.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00175/0.3083, allocations: 1.501 MB / 464.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.3096, allocations: 0.6574 MB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3096, allocations: 0 / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006828/0.3103, allocations: 424.6 kB / 465.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005096/0.3108, allocations: 65.7 kB / 465.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005908/0.3168, allocations: 4.666 MB / 470 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.3172, allocations: 0.8668 MB / 470.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.3175, allocations: 71.22 kB / 470.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.3177, allocations: 151.4 kB / 471 MB, free: 9.422 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3177, allocations: 0 / 471 MB, free: 9.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.34, allocations: 9.214 MB / 480.2 MB, free: 212 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002687/0.3403, allocations: 229.8 kB / 480.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.301, allocations: 0 / 480.5 MB, free: 15.95 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)