Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001365/0.001365, allocations: 107.4 kB / 16.92 MB, free: 5.773 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.001232/0.001232, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.293/1.293, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1608/0.1608, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 65.55 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.1001, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004656/0.1048, allocations: 3.312 MB / 460.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.1066, allocations: 1.228 MB / 461.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.1067, allocations: 4 kB / 461.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006124/0.1074, allocations: 163.3 kB / 461.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003892/0.1077, allocations: 171.2 kB / 461.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002857/0.108, allocations: 127.7 kB / 462 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003059/0.1084, allocations: 283 kB / 462.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.1086, allocations: 122.2 kB / 462.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.1088, allocations: 123.5 kB / 462.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.109, allocations: 107.5 kB / 462.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.109, allocations: 16 kB / 462.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003275/0.1094, allocations: 231.4 kB / 462.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.789e-05/0.1094, allocations: 55.83 kB / 462.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.51e-05/0.1095, allocations: 87.55 kB / 463 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.1099, allocations: 295 kB / 463.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1099, allocations: 0 / 463.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1099, allocations: 4 kB / 463.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1099, allocations: 0 / 463.3 MB, free: 1.652 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005696/0.1105, allocations: 0.4911 MB / 463.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1105, allocations: 19.88 kB / 463.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.1106, allocations: 54.73 kB / 463.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006143/0.1112, allocations: 68.67 kB / 463.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1116, allocations: 272.6 kB / 464.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.1116, allocations: 12.7 kB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.1116, allocations: 12.38 kB / 464.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/0.112, allocations: 279.8 kB / 464.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.112, allocations: 0 / 464.4 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.112, allocations: 8 kB / 464.5 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.776e-05/0.1121, allocations: 16.31 kB / 464.5 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.1124, allocations: 220 kB / 464.7 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.1139, allocations: 1.206 MB / 465.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.1141, allocations: 137.1 kB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.274e-05/0.1142, allocations: 49.84 kB / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.1142, allocations: 0 / 466.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.1142, allocations: 38.56 kB / 466.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.464e-06/0.1142, allocations: 3.938 kB / 466.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003205/0.1146, allocations: 173.2 kB / 466.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.1146, allocations: 81.05 kB / 466.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.1148, allocations: 214.8 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.1148, allocations: 25.7 kB / 466.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.933e-05/0.1149, allocations: 148 kB / 466.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.115, allocations: 47.34 kB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.115, allocations: 45.83 kB / 466.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1152, allocations: 326.8 kB / 467.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.16e-05/0.1153, allocations: 43.97 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.1154, allocations: 125 kB / 467.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/0.1156, allocations: 186.1 kB / 467.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.1157, allocations: 8 kB / 467.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002793/0.1159, allocations: 205.3 kB / 467.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.116, allocations: 14.17 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.116, allocations: 0 / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.116, allocations: 7.938 kB / 467.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.1162, allocations: 51.91 kB / 467.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009848/0.1172, allocations: 1.42 MB / 469.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.1173, allocations: 19.78 kB / 469.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1174, allocations: 8 kB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * 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.0001206/0.1175, allocations: 153.8 kB / 469.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.1175, allocations: 15.81 kB / 469.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.1178, allocations: 139 kB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1178, allocations: 0 / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.1178, allocations: 7.984 kB / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1179, allocations: 0 / 469.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000577/0.1184, allocations: 0.492 MB / 470 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1184, allocations: 0 / 470 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.1186, allocations: 31.92 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1186, allocations: 0 / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.1186, allocations: 4 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008852/0.1195, allocations: 1.424 MB / 471.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1196, allocations: 0 / 471.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.1199, allocations: 302 kB / 471.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.12, allocations: 100.9 kB / 471.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.1201, allocations: 0 / 471.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.1202, allocations: 8 kB / 471.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-05/0.1202, allocations: 11.92 kB / 471.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1202, allocations: 12.05 kB / 471.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.1203, allocations: 144.6 kB / 472.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1203, allocations: 0 / 472.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000324/0.1207, allocations: 51.84 kB / 472.1 MB, free: 8.008 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0005822/0.1212, allocations: 0.839 MB / 472.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.1216, allocations: 143.7 kB / 473.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1216, allocations: 0 / 473.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1218, allocations: 56.78 kB / 473.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.1222, allocations: 40.91 kB / 473.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1247, allocations: 2.337 MB / 475.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.125, allocations: 0.7437 MB / 476.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.45e-05/0.1251, allocations: 29.52 kB / 476.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.516e-05/0.1252, allocations: 59.42 kB / 476.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1252, allocations: 0 / 476.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.1464, allocations: 3.703 MB / 480 MB, free: 15.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.56, allocations: 0 / 480 MB, free: 15.94 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)