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 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.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.001157/0.001157, allocations: 112.4 kB / 17.06 MB, free: 6.004 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.001109/0.001109, allocations: 200 kB / 18 MB, free: 5.082 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.328/1.328, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1792/0.1792, allocations: 37.99 MB / 309.2 MB, free: 5.945 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.001593/0.001593, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1161, allocations: 55.25 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00565/0.1218, allocations: 3.319 MB / 489.9 MB, free: 5.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.1239, allocations: 1.264 MB / 491.2 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1242, allocations: 7.938 kB / 491.2 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007518/0.1249, allocations: 159.3 kB / 491.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006303/0.1256, allocations: 179.2 kB / 491.5 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.126, allocations: 135.6 kB / 491.7 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.1265, allocations: 283 kB / 491.9 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003511/0.1269, allocations: 126.2 kB / 492.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.1272, allocations: 127.5 kB / 492.2 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.1274, allocations: 107.5 kB / 492.3 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.1275, allocations: 15.98 kB / 492.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004273/0.1279, allocations: 227.4 kB / 492.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.428e-05/0.128, allocations: 59.81 kB / 492.6 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.1281, allocations: 95.53 kB / 492.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.1286, allocations: 295.9 kB / 493 MB, free: 2.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1287, allocations: 3.938 kB / 493 MB, free: 2.438 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1287, allocations: 0 / 493 MB, free: 2.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1287, allocations: 0 / 493 MB, free: 2.438 MB / 366.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.0007644/0.1294, allocations: 495.1 kB / 493.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1295, allocations: 11.89 kB / 493.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.452e-05/0.1296, allocations: 58.72 kB / 493.5 MB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007253/0.1303, allocations: 76.58 kB / 493.6 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.1307, allocations: 271.8 kB / 493.9 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1307, allocations: 8.703 kB / 493.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.483e-05/0.1308, allocations: 20.36 kB / 493.9 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004369/0.1312, allocations: 267.9 kB / 494.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1312, allocations: 3.938 kB / 494.2 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.1313, allocations: 4 kB / 494.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.083e-05/0.1313, allocations: 20.31 kB / 494.2 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.1317, allocations: 212.4 kB / 494.4 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1333, allocations: 1.217 MB / 495.6 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.1336, allocations: 133.1 kB / 495.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.645e-05/0.1337, allocations: 45.86 kB / 495.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.1337, allocations: 3.938 kB / 495.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.1338, allocations: 42.55 kB / 495.8 MB, free: 15.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.1338, allocations: 0 / 495.8 MB, free: 15.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003773/0.1341, allocations: 161.4 kB / 496 MB, free: 15.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.1342, allocations: 89.09 kB / 496.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.1344, allocations: 203 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1345, allocations: 25.7 kB / 496.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1346, allocations: 155.9 kB / 496.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.1346, allocations: 47.28 kB / 496.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/0.1347, allocations: 41.7 kB / 496.5 MB, free: 14.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1349, allocations: 326.8 kB / 496.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.135, allocations: 55.83 kB / 496.9 MB, free: 14.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.1351, allocations: 114.3 kB / 497 MB, free: 14.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.1353, allocations: 190.5 kB / 497.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1353, allocations: 0 / 497.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000312/0.1357, allocations: 201.1 kB / 497.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1357, allocations: 8 kB / 497.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1357, allocations: 8.344 kB / 497.4 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.1357, allocations: 7.938 kB / 497.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.136, allocations: 51.91 kB / 497.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.1371, allocations: 1.428 MB / 498.9 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.1372, allocations: 15.84 kB / 498.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.1373, allocations: 12 kB / 498.9 MB, free: 11.95 MB / 382.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.0001362/0.1374, allocations: 141.7 kB / 499.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/0.1375, allocations: 15.81 kB / 499.1 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002366/0.1377, allocations: 143.1 kB / 499.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1377, allocations: 4 kB / 499.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.1377, allocations: 0 / 499.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1377, allocations: 0 / 499.2 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006476/0.1384, allocations: 0.492 MB / 499.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1384, allocations: 0 / 499.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.1386, allocations: 35.95 kB / 499.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.1386, allocations: 0 / 499.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1386, allocations: 12.06 kB / 499.8 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000877/0.1395, allocations: 1.416 MB / 0.4894 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1395, allocations: 4.031 kB / 0.4894 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.1398, allocations: 314.2 kB / 0.4897 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.772e-05/0.1399, allocations: 88.92 kB / 0.4898 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.14, allocations: 12.11 kB / 0.4898 GB, free: 9.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.41e-05/0.1401, allocations: 4 kB / 0.4898 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.568e-05/0.1401, allocations: 7.984 kB / 0.4898 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.1401, allocations: 8 kB / 0.4899 GB, free: 9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.1402, allocations: 152.4 kB / 0.49 GB, free: 8.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1402, allocations: 3.938 kB / 0.49 GB, free: 8.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003516/0.1406, allocations: 51.84 kB / 0.4901 GB, free: 8.797 MB / 382.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.00069/0.1413, allocations: 0.8398 MB / 0.4909 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003519/0.1417, allocations: 128.2 kB / 0.491 GB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.1417, allocations: 4 kB / 0.491 GB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.1418, allocations: 55.91 kB / 0.4911 GB, free: 7.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.1423, allocations: 43.77 kB / 0.4911 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.1451, allocations: 2.355 MB / 0.4934 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.1455, allocations: 0.7437 MB / 0.4941 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1456, allocations: 29.53 kB / 0.4941 GB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1457, allocations: 59.41 kB / 0.4942 GB, free: 4.316 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1457, allocations: 192 / 0.4942 GB, free: 4.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.1716, allocations: 3.832 MB / 0.4979 GB, free: 440 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/10.88, allocations: 8.047 kB / 0.498 GB, free: 432 kB / 382.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)