Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") translateModel(PowerSystems.Examples.Introductory.Frequency,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 108 kB / 17.68 MB, free: 5.328 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.001941/0.001941, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.408/1.408, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1766/0.1766, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 59.28 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1108, allocations: 58.08 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.006904/0.1178, allocations: 5.429 MB / 463.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1198, allocations: 1.107 MB / 464.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002271/0.1201, allocations: 19.88 kB / 464.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1203, allocations: 83.22 kB / 465 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000653/0.121, allocations: 290.3 kB / 465.2 MB, free: 376 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.1213, allocations: 139.8 kB / 465.4 MB, free: 236 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007642/0.1221, allocations: 0.7085 MB / 466.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.1224, allocations: 180.7 kB / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003981/0.1228, allocations: 302.6 kB / 466.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004986/0.1233, allocations: 330.8 kB / 466.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.1234, allocations: 36 kB / 466.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.907e-05/0.1234, allocations: 32 kB / 466.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.1236, allocations: 155.5 kB / 467.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002416/0.1239, allocations: 246.7 kB / 467.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005143/0.1244, allocations: 490.2 kB / 467.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1244, allocations: 0 / 467.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1244, allocations: 3.938 kB / 467.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.1244, allocations: 0 / 467.8 MB, free: 13.77 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.001348/0.1258, allocations: 0.793 MB / 468.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1258, allocations: 8.031 kB / 468.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.434e-05/0.1259, allocations: 52.28 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007774/0.1267, allocations: 472.1 kB / 469.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.1268, allocations: 25 kB / 469.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.84e-05/0.1269, allocations: 36 kB / 469.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006603/0.1275, allocations: 459.6 kB / 469.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1276, allocations: 4 kB / 469.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.1276, allocations: 16 kB / 469.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1276, allocations: 8 kB / 469.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.1281, allocations: 308.6 kB / 470 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1302, allocations: 1.763 MB / 471.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.1304, allocations: 155.6 kB / 471.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.934e-05/0.1305, allocations: 54.67 kB / 471.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.1306, allocations: 8 kB / 471.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.1306, allocations: 34.56 kB / 472 MB, free: 9.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.294e-06/0.1306, allocations: 0 / 472 MB, free: 9.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009611/0.1316, allocations: 0.5998 MB / 472.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.307e-05/0.1316, allocations: 114.7 kB / 472.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.132, allocations: 373.5 kB / 473.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.132, allocations: 33.83 kB / 473.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.1322, allocations: 279.4 kB / 473.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.1323, allocations: 63.17 kB / 473.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1324, allocations: 57.61 kB / 473.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1325, allocations: 350.8 kB / 473.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.845e-05/0.1326, allocations: 43.98 kB / 473.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.1329, allocations: 194.5 kB / 474.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.1332, allocations: 266.6 kB / 474.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1333, allocations: 0 / 474.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004177/0.1337, allocations: 293.1 kB / 474.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1337, allocations: 8 kB / 474.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1337, allocations: 8 kB / 474.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.1338, allocations: 7.938 kB / 474.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.134, allocations: 71.91 kB / 474.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.134, allocations: 8.562 kB / 474.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.1342, allocations: 16 kB / 474.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.1342, allocations: 16.08 kB / 474.7 MB, free: 6.312 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.0002022/0.1344, allocations: 185.6 kB / 474.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.151e-05/0.1345, allocations: 39.53 kB / 475 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.1348, allocations: 172.7 kB / 475.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1348, allocations: 0 / 475.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1348, allocations: 4 kB / 475.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1349, allocations: 3.938 kB / 475.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006457/0.1355, allocations: 0.5265 MB / 475.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1355, allocations: 0 / 475.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.1357, allocations: 35.92 kB / 475.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1357, allocations: 4 kB / 475.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.1357, allocations: 448 / 475.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1357, allocations: 4 kB / 475.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1358, allocations: 3.938 kB / 475.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004007/0.1362, allocations: 399.9 kB / 476.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.02e-05/0.1363, allocations: 116.6 kB / 476.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.1363, allocations: 8.031 kB / 476.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1365, allocations: 7.938 kB / 476.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.1365, allocations: 19.91 kB / 476.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1366, allocations: 12 kB / 476.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.1368, allocations: 251.2 kB / 476.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1368, allocations: 0 / 476.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004239/0.1373, allocations: 72 kB / 476.6 MB, free: 4.363 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.0001293/0.1374, allocations: 99.19 kB / 476.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003105/0.1377, allocations: 163.8 kB / 476.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1377, allocations: 0 / 476.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.441e-05/0.1378, allocations: 52.02 kB / 476.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007227/0.1386, allocations: 91.69 kB / 477 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1401, allocations: 0.8646 MB / 477.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.1406, allocations: 0.8426 MB / 478.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.1408, allocations: 43.27 kB / 478.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.977e-05/0.1409, allocations: 31.44 kB / 478.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1409, allocations: 0 / 478.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of Templates: time 0.007633/0.1485, allocations: 3.25 MB / 482 MB, free: 14.91 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches