Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.001117/0.001117, allocations: 104.6 kB / 17.06 MB, free: 6 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.001152/0.001153, allocations: 196 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.478/1.478, 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.1692/0.1692, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001363/0.001363, allocations: 71.91 kB / 431.4 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 55.24 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006764/0.1151, allocations: 5.425 MB / 492 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1171, allocations: 1.158 MB / 493.2 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003626/0.1175, allocations: 19.88 kB / 493.2 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002932/0.1178, allocations: 83.22 kB / 493.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008915/0.1188, allocations: 298.3 kB / 493.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.1192, allocations: 139.8 kB / 493.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008401/0.12, allocations: 0.6967 MB / 494.4 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003276/0.1203, allocations: 180.7 kB / 494.6 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005939/0.121, allocations: 310.6 kB / 494.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007192/0.1217, allocations: 326.8 kB / 495.2 MB, free: 204 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.414e-05/0.1218, allocations: 32 kB / 495.2 MB, free: 172 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.1219, allocations: 36 kB / 495.3 MB, free: 136 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.1221, allocations: 159.5 kB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003529/0.1225, allocations: 246.7 kB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005566/0.1231, allocations: 490.2 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1231, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1231, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.1231, allocations: 3.938 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0014/0.1245, allocations: 0.7968 MB / 496.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.1246, allocations: 19.84 kB / 497 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.354e-05/0.1247, allocations: 70.72 kB / 497 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.1248, allocations: 56.27 kB / 497.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.1255, allocations: 464 kB / 497.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.1255, allocations: 28.98 kB / 497.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.1256, allocations: 36 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006176/0.1262, allocations: 451.6 kB / 498 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.1262, allocations: 4 kB / 498.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.1263, allocations: 19.98 kB / 498.1 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.497e-06/0.1263, allocations: 8 kB / 498.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.1268, allocations: 312.6 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.1288, allocations: 1.759 MB / 0.4884 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.129, allocations: 147.6 kB / 0.4886 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.113e-05/0.1291, allocations: 58.67 kB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.1291, allocations: 8.141 kB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.1291, allocations: 34.56 kB / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.1291, allocations: 0 / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009464/0.1301, allocations: 0.6004 MB / 0.4892 GB, free: 10.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.1302, allocations: 110.8 kB / 0.4893 GB, free: 9.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.1305, allocations: 373.7 kB / 0.4897 GB, free: 9.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.1305, allocations: 29.7 kB / 0.4897 GB, free: 9.527 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.1307, allocations: 279.4 kB / 0.49 GB, free: 9.246 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.1308, allocations: 59.19 kB / 0.4901 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.415e-05/0.1309, allocations: 65.36 kB / 0.4901 GB, free: 9.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.131, allocations: 354.7 kB / 0.4905 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.964e-05/0.1311, allocations: 52.03 kB / 0.4905 GB, free: 8.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1313, allocations: 186.8 kB / 0.4907 GB, free: 8.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.1316, allocations: 270.6 kB / 0.4909 GB, free: 8.129 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1316, allocations: 0 / 0.4909 GB, free: 8.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004179/0.132, allocations: 296.6 kB / 0.4912 GB, free: 7.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.132, allocations: 8 kB / 0.4912 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.1321, allocations: 8 kB / 0.4912 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.1321, allocations: 4 kB / 0.4912 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.1323, allocations: 68.53 kB / 0.4913 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.94e-05/0.1324, allocations: 7.938 kB / 0.4913 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.1326, allocations: 20 kB / 0.4913 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.1326, allocations: 19.92 kB / 0.4914 GB, free: 7.699 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.1328, allocations: 185.6 kB / 0.4915 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.12e-05/0.1329, allocations: 35.53 kB / 0.4916 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/0.1332, allocations: 172.7 kB / 0.4917 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1332, allocations: 0 / 0.4917 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1332, allocations: 4 kB / 0.4917 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1332, allocations: 4 kB / 0.4917 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000627/0.1339, allocations: 0.5264 MB / 0.4923 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1339, allocations: 0 / 0.4923 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.134, allocations: 35.92 kB / 0.4923 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.1341, allocations: 0 / 0.4923 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.1341, allocations: 8 kB / 0.4923 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1341, allocations: 4 kB / 0.4923 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.1341, allocations: 7.922 kB / 0.4923 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004285/0.1345, allocations: 399.8 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.1346, allocations: 108.7 kB / 0.4928 GB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.1347, allocations: 8 kB / 0.4928 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.1349, allocations: 3.938 kB / 0.4928 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/0.1349, allocations: 19.98 kB / 0.4928 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.1349, allocations: 4 kB / 0.4928 GB, free: 6.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1352, allocations: 251.2 kB / 0.4931 GB, free: 5.828 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1352, allocations: 0 / 0.4931 GB, free: 5.828 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.1356, allocations: 72 kB / 0.4931 GB, free: 5.758 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006438/0.1363, allocations: 0.9354 MB / 0.494 GB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002756/0.1365, allocations: 165.2 kB / 0.4942 GB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.1366, allocations: 4 kB / 0.4942 GB, free: 4.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.1366, allocations: 56.2 kB / 0.4943 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006493/0.1373, allocations: 102 kB / 0.4944 GB, free: 4.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.1411, allocations: 3.4 MB / 0.4977 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1415, allocations: 0.8426 MB / 0.4985 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.1417, allocations: 43.27 kB / 0.4985 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.1419, allocations: 143.4 kB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1419, allocations: 0 / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.1715, allocations: 7.143 MB / 0.5057 GB, free: 8.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.847, allocations: 11.83 kB / 0.5057 GB, free: 8.582 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)