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.001156/0.001157, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001116/0.001116, allocations: 196 kB / 18 MB, free: 5.105 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.366/1.366, allocations: 205.1 MB / 223.9 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.178/0.178, allocations: 37.99 MB / 309.2 MB, free: 5.973 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.001517/0.001517, allocations: 71.89 kB / 431.4 MB, free: 16.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1033, allocations: 55.25 MB / 486.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005083/0.1084, allocations: 3.304 MB / 489.9 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1105, allocations: 1.271 MB / 491.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.1107, allocations: 7.938 kB / 491.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006544/0.1114, allocations: 159.3 kB / 491.3 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004904/0.1119, allocations: 175.2 kB / 491.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.1123, allocations: 139.6 kB / 491.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.1127, allocations: 283 kB / 491.9 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.1131, allocations: 122.2 kB / 492 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.1134, allocations: 131.4 kB / 492.2 MB, free: 3.371 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.1136, allocations: 107.5 kB / 492.3 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.1137, allocations: 16 kB / 492.3 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004183/0.1141, allocations: 227.4 kB / 492.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.055e-05/0.1142, allocations: 55.83 kB / 492.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.1143, allocations: 99.52 kB / 492.7 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000496/0.1148, allocations: 288 kB / 493 MB, free: 2.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1148, allocations: 0 / 493 MB, free: 2.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1148, allocations: 3.938 kB / 493 MB, free: 2.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1149, allocations: 0 / 493 MB, free: 2.59 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.0007832/0.1156, allocations: 0.4912 MB / 493.4 MB, free: 2.051 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1157, allocations: 11.89 kB / 493.5 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.482e-05/0.1158, allocations: 54.73 kB / 493.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007728/0.1165, allocations: 76.58 kB / 493.6 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.1169, allocations: 267.8 kB / 493.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.1169, allocations: 12.7 kB / 493.9 MB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.117, allocations: 12.38 kB / 493.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.1175, allocations: 279.8 kB / 494.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.1175, allocations: 0 / 494.1 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.1175, allocations: 12 kB / 494.2 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.961e-05/0.1176, allocations: 8.328 kB / 494.2 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.1179, allocations: 220.3 kB / 494.4 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1197, allocations: 1.225 MB / 495.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.1199, allocations: 133.2 kB / 495.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.787e-05/0.12, allocations: 45.77 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.1201, allocations: 4 kB / 495.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1201, allocations: 34.56 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 2.324e-06/0.1201, allocations: 0 / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004004/0.1205, allocations: 169.3 kB / 496 MB, free: 15.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.123e-05/0.1206, allocations: 85.11 kB / 496.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.1208, allocations: 203 kB / 496.3 MB, free: 15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.1209, allocations: 25.7 kB / 496.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.121, allocations: 159.8 kB / 496.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.809e-05/0.121, allocations: 47.34 kB / 496.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.1212, allocations: 37.72 kB / 496.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1213, allocations: 326.8 kB / 496.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.111e-05/0.1214, allocations: 51.84 kB / 496.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.1215, allocations: 122.2 kB / 497 MB, free: 14.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.1218, allocations: 182.2 kB / 497.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1218, allocations: 0 / 497.2 MB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003187/0.1221, allocations: 201.1 kB / 497.4 MB, free: 13.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.1221, allocations: 8 kB / 497.4 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1222, allocations: 12.28 kB / 497.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1222, allocations: 7.938 kB / 497.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.1224, allocations: 47.97 kB / 497.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.1236, allocations: 1.424 MB / 498.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1237, allocations: 15.84 kB / 498.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.1237, allocations: 19.92 kB / 498.9 MB, free: 12.09 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.0001306/0.1239, allocations: 137.8 kB / 499.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.1239, allocations: 15.81 kB / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.1242, allocations: 147 kB / 499.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1242, allocations: 4 kB / 499.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.1242, allocations: 0 / 499.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1242, allocations: 0 / 499.2 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006849/0.1249, allocations: 499.8 kB / 499.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1249, allocations: 0 / 499.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.1251, allocations: 32.06 kB / 499.7 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.1251, allocations: 7.938 kB / 499.8 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.1252, allocations: 16.05 kB / 499.8 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.1263, allocations: 1.416 MB / 0.4894 GB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1263, allocations: 4 kB / 0.4894 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006145/0.127, allocations: 314.1 kB / 0.4897 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/0.1271, allocations: 88.95 kB / 0.4898 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.612e-05/0.1271, allocations: 12.12 kB / 0.4898 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.464e-05/0.1272, allocations: 0 / 0.4898 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.324e-05/0.1272, allocations: 7.984 kB / 0.4898 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.1273, allocations: 8 kB / 0.4899 GB, free: 9.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.1274, allocations: 156.4 kB / 0.49 GB, free: 8.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1274, allocations: 0 / 0.49 GB, free: 8.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.1278, allocations: 51.84 kB / 0.49 GB, free: 8.938 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.0007145/0.1285, allocations: 0.8359 MB / 0.4909 GB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.1289, allocations: 136.2 kB / 0.491 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1289, allocations: 0 / 0.491 GB, free: 7.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.1291, allocations: 55.91 kB / 0.491 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.1295, allocations: 36.72 kB / 0.4911 GB, free: 7.844 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.1323, allocations: 2.363 MB / 0.4934 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1327, allocations: 0.7476 MB / 0.4941 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.87e-05/0.1328, allocations: 33.47 kB / 0.4942 GB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.861e-05/0.1329, allocations: 55.42 kB / 0.4942 GB, free: 4.453 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1329, allocations: 0 / 0.4942 GB, free: 4.453 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02366/0.1565, allocations: 3.831 MB / 0.4979 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.14, allocations: 11.95 kB / 0.498 GB, free: 0.5547 MB / 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)