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 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.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.00108/0.00108, allocations: 106.6 kB / 16.62 MB, free: 6.812 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: 189.8 kB / 17.55 MB, free: 5.953 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.241/1.241, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1688/0.1688, allocations: 38.02 MB / 329.4 MB, free: 8.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 66.03 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08681, allocations: 58.06 MB / 456.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007923/0.09477, allocations: 6.909 MB / 463.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.09752, allocations: 1.543 MB / 464.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006329/0.09817, allocations: 51.69 kB / 464.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002877/0.09847, allocations: 59.47 kB / 465 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008284/0.09935, allocations: 270.7 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.0997, allocations: 127.8 kB / 465.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008049/0.1005, allocations: 0.6968 MB / 466.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.1008, allocations: 180.7 kB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004934/0.1013, allocations: 302.6 kB / 466.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005597/0.1019, allocations: 342.8 kB / 466.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.897e-05/0.102, allocations: 32 kB / 466.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.1021, allocations: 36 kB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.1023, allocations: 163.5 kB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000267/0.1026, allocations: 242.8 kB / 467.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.103, allocations: 478.2 kB / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.103, allocations: 0 / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.103, allocations: 0 / 467.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.103, allocations: 0 / 467.8 MB, free: 12.88 MB / 350.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.001247/0.1043, allocations: 0.8045 MB / 468.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1043, allocations: 11.89 kB / 468.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.789e-05/0.1044, allocations: 78.7 kB / 468.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.041e-05/0.1045, allocations: 52.38 kB / 468.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.1051, allocations: 424 kB / 469.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.1051, allocations: 32.94 kB / 469.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.1052, allocations: 40 kB / 469.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006273/0.1058, allocations: 455.6 kB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.1058, allocations: 3.984 kB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.1059, allocations: 23.98 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.1059, allocations: 8 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1064, allocations: 308.6 kB / 470 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1083, allocations: 1.763 MB / 471.8 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.1085, allocations: 147.6 kB / 471.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.005e-05/0.1086, allocations: 58.61 kB / 472 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.1086, allocations: 4.141 kB / 472 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1086, allocations: 46.5 kB / 472 MB, free: 8.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.1086, allocations: 0 / 472 MB, free: 8.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009054/0.1096, allocations: 0.6074 MB / 472.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1096, allocations: 102.8 kB / 472.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003356/0.11, allocations: 369.7 kB / 473.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.11, allocations: 25.7 kB / 473.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.1102, allocations: 295.4 kB / 473.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.195e-05/0.1102, allocations: 51.2 kB / 473.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.1103, allocations: 61.7 kB / 473.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1104, allocations: 346.8 kB / 473.9 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.483e-05/0.1106, allocations: 51.91 kB / 473.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1107, allocations: 194.6 kB / 474.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002769/0.111, allocations: 266.6 kB / 474.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.111, allocations: 0 / 474.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003992/0.1114, allocations: 288.8 kB / 474.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1115, allocations: 8 kB / 474.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.1115, allocations: 4 kB / 474.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1115, allocations: 8 kB / 474.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.1117, allocations: 71.84 kB / 474.7 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1118, allocations: 8 kB / 474.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.1119, allocations: 16.41 kB / 474.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.112, allocations: 20.53 kB / 474.8 MB, free: 5.352 MB / 350.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.0001689/0.1121, allocations: 185.6 kB / 475 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.1122, allocations: 35.53 kB / 475 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.1125, allocations: 168.7 kB / 475.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1125, allocations: 4 kB / 475.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1125, allocations: 0 / 475.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1125, allocations: 0 / 475.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006017/0.1131, allocations: 0.5305 MB / 475.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1131, allocations: 7.938 kB / 475.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.1133, allocations: 39.92 kB / 475.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1134, allocations: 0 / 475.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1134, allocations: 4 kB / 475.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.1134, allocations: 3.984 kB / 475.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1134, allocations: 3.938 kB / 475.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.1138, allocations: 406.5 kB / 476.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.509e-05/0.1139, allocations: 116.6 kB / 476.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.1139, allocations: 8.438 kB / 476.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.1141, allocations: 7.938 kB / 476.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.1141, allocations: 12.06 kB / 476.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1141, allocations: 16 kB / 476.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002346/0.1144, allocations: 255.2 kB / 476.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1144, allocations: 0 / 476.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004124/0.1148, allocations: 68 kB / 476.6 MB, free: 3.395 MB / 350.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.0006324/0.1154, allocations: 0.9331 MB / 477.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.1157, allocations: 172.8 kB / 477.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1157, allocations: 0 / 477.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.124e-05/0.1158, allocations: 55.92 kB / 477.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.1165, allocations: 90.78 kB / 477.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1204, allocations: 3.591 MB / 481.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1208, allocations: 0.8347 MB / 482.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001872/0.121, allocations: 51.25 kB / 482.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.1212, allocations: 147.4 kB / 482.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1212, allocations: 0 / 482.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.1482, allocations: 6.815 MB / 489.3 MB, free: 6.57 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.1484, allocations: 193.2 kB / 489.5 MB, free: 6.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.005, allocations: 0 / 489.5 MB, free: 6.312 MB / 366.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)