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.00134/0.001345, allocations: 105.8 kB / 17.06 MB, free: 6.023 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.001095/0.001095, allocations: 195 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.396/1.396, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1735/0.1735, allocations: 37.99 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.001601/0.001601, allocations: 63.91 kB / 431.3 MB, free: 16.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.105, allocations: 55.25 MB / 486.6 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006708/0.1117, allocations: 5.43 MB / 492 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.1137, allocations: 1.154 MB / 493.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.114, allocations: 19.88 kB / 493.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.1143, allocations: 79.28 kB / 493.3 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007251/0.115, allocations: 302.3 kB / 493.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.1153, allocations: 143.7 kB / 493.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007414/0.1161, allocations: 0.6929 MB / 494.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000277/0.1164, allocations: 180.7 kB / 494.6 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.1168, allocations: 314.6 kB / 494.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005049/0.1173, allocations: 330.8 kB / 495.2 MB, free: 200 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.1174, allocations: 32 kB / 495.2 MB, free: 168 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.998e-05/0.1175, allocations: 40 kB / 495.3 MB, free: 128 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.1177, allocations: 155.6 kB / 495.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.1179, allocations: 242.7 kB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.1184, allocations: 498.2 kB / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1184, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1184, allocations: 0 / 496.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.1184, allocations: 0 / 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.001291/0.1197, allocations: 0.789 MB / 496.9 MB, free: 14.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1198, allocations: 19.84 kB / 497 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.246e-05/0.1198, allocations: 78.7 kB / 497 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.515e-05/0.1199, allocations: 52.28 kB / 497.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007461/0.1207, allocations: 464 kB / 497.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.1207, allocations: 28.94 kB / 497.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.1208, allocations: 36 kB / 497.6 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.1214, allocations: 459.6 kB / 498.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.1215, allocations: 4 kB / 498.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.1215, allocations: 16 kB / 498.1 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.1215, allocations: 8 kB / 498.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004494/0.122, allocations: 304.7 kB / 498.4 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.124, allocations: 1.763 MB / 0.4884 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.1242, allocations: 147.6 kB / 0.4886 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.861e-05/0.1243, allocations: 58.61 kB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.1243, allocations: 4 kB / 0.4886 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.1243, allocations: 42.55 kB / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.1244, allocations: 0 / 0.4887 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009994/0.1254, allocations: 0.5963 MB / 0.4892 GB, free: 10.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.1254, allocations: 110.8 kB / 0.4893 GB, free: 9.934 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1258, allocations: 369.6 kB / 0.4897 GB, free: 9.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1258, allocations: 29.7 kB / 0.4897 GB, free: 9.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.126, allocations: 279.5 kB / 0.49 GB, free: 9.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.62e-05/0.1261, allocations: 63.19 kB / 0.4901 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.838e-05/0.1262, allocations: 65.36 kB / 0.4901 GB, free: 9.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1263, allocations: 354.7 kB / 0.4905 GB, free: 8.762 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1264, allocations: 47.97 kB / 0.4905 GB, free: 8.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.1266, allocations: 194.8 kB / 0.4907 GB, free: 8.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.1269, allocations: 274.9 kB / 0.4909 GB, free: 8.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1269, allocations: 0 / 0.4909 GB, free: 8.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003977/0.1273, allocations: 292.8 kB / 0.4912 GB, free: 7.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1273, allocations: 4 kB / 0.4912 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.1274, allocations: 8 kB / 0.4912 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1274, allocations: 4 kB / 0.4912 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.1276, allocations: 75.84 kB / 0.4913 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1277, allocations: 7.984 kB / 0.4913 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.1278, allocations: 12.5 kB / 0.4913 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.1279, allocations: 20 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.0001669/0.128, allocations: 185.6 kB / 0.4915 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.987e-05/0.1281, allocations: 39.53 kB / 0.4916 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000272/0.1284, allocations: 160.8 kB / 0.4917 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1284, allocations: 0 / 0.4917 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1284, allocations: 4 kB / 0.4917 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1284, allocations: 0 / 0.4917 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006165/0.129, allocations: 0.538 MB / 0.4923 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.129, allocations: 0 / 0.4923 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.1292, allocations: 39.92 kB / 0.4923 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1292, allocations: 4 kB / 0.4923 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.1293, allocations: 3.984 kB / 0.4923 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1293, allocations: 4 kB / 0.4923 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.1293, allocations: 3.938 kB / 0.4923 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.1297, allocations: 399.8 kB / 0.4927 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.748e-05/0.1298, allocations: 112.7 kB / 0.4928 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.1298, allocations: 4 kB / 0.4928 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.13, allocations: 7.938 kB / 0.4928 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.13, allocations: 11.98 kB / 0.4928 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.13, allocations: 4 kB / 0.4928 GB, free: 6.074 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002465/0.1303, allocations: 259.2 kB / 0.4931 GB, free: 5.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1303, allocations: 0 / 0.4931 GB, free: 5.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004163/0.1307, allocations: 76 kB / 0.4931 GB, free: 5.75 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.0006699/0.1314, allocations: 0.9277 MB / 0.494 GB, free: 4.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.1317, allocations: 155.7 kB / 0.4942 GB, free: 4.637 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1317, allocations: 5.25 kB / 0.4942 GB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.979e-05/0.1318, allocations: 55.86 kB / 0.4943 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006921/0.1325, allocations: 106.3 kB / 0.4944 GB, free: 4.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.1365, allocations: 3.404 MB / 0.4977 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.1369, allocations: 0.8386 MB / 0.4985 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.1371, allocations: 47.27 kB / 0.4985 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.1373, allocations: 151.4 kB / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1373, allocations: 0 / 0.4987 GB, free: 15.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.1634, allocations: 7.135 MB / 0.5057 GB, free: 8.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.195/8.358, allocations: 19.77 kB / 0.5057 GB, free: 8.574 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)