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.0009394/0.0009394, allocations: 93.33 kB / 16.3 MB, free: 6.133 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.0008816/0.0008818, allocations: 179 kB / 17.2 MB, free: 6.016 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.303/1.303, allocations: 223.2 MB / 241.1 MB, free: 272 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1831/0.1831, allocations: 38.09 MB / 330.3 MB, free: 8.953 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003003, allocations: 8.969 kB / 400 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1087, allocations: 59.17 MB / 459.1 MB, free: 7.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.005557/0.1143, allocations: 5.835 MB / 465 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.1165, allocations: 1.528 MB / 466.5 MB, free: 56 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002945/0.1168, allocations: 47.69 kB / 466.5 MB, free: 8 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002319/0.117, allocations: 95.38 kB / 466.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006761/0.1177, allocations: 354.8 kB / 467 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.1181, allocations: 203.5 kB / 467.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004216/0.1185, allocations: 395.2 kB / 467.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.1188, allocations: 126.5 kB / 467.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.1191, allocations: 235.1 kB / 467.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.1194, allocations: 235.2 kB / 468.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.085e-05/0.1195, allocations: 23.94 kB / 468.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.1195, allocations: 16 kB / 468.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1197, allocations: 127.6 kB / 468.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1198, allocations: 113.5 kB / 468.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.1201, allocations: 367 kB / 468.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.1201, allocations: 0 / 468.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1201, allocations: 0 / 468.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1201, allocations: 0 / 468.8 MB, free: 13.75 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.001077/0.1212, allocations: 0.715 MB / 469.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1212, allocations: 16.03 kB / 469.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.504e-05/0.1213, allocations: 55.33 kB / 469.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.1219, allocations: 407.4 kB / 470 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.1219, allocations: 32.98 kB / 470 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.122, allocations: 36 kB / 470 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.1226, allocations: 451.6 kB / 470.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.1226, allocations: 3.938 kB / 470.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.1226, allocations: 19.97 kB / 470.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1226, allocations: 8 kB / 470.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004304/0.1231, allocations: 304.7 kB / 470.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.1248, allocations: 1.771 MB / 472.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/0.125, allocations: 139.8 kB / 472.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.1251, allocations: 8.203 kB / 472.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.1251, allocations: 38.5 kB / 472.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.1251, allocations: 0 / 472.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008656/0.126, allocations: 0.5997 MB / 473.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.126, allocations: 114.8 kB / 473.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.1264, allocations: 377.6 kB / 473.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1264, allocations: 29.7 kB / 473.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.1266, allocations: 279.4 kB / 474.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.1266, allocations: 55.25 kB / 474.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-06/0.1266, allocations: 4 kB / 474.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1268, allocations: 350.8 kB / 474.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.816e-05/0.1268, allocations: 43.98 kB / 474.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.127, allocations: 191.1 kB / 474.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.1271, allocations: 83.92 kB / 474.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1271, allocations: 4 kB / 474.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003788/0.1275, allocations: 292.7 kB / 475.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1275, allocations: 8 kB / 475.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1276, allocations: 4 kB / 475.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.1276, allocations: 8 kB / 475.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.1278, allocations: 68.28 kB / 475.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.1279, allocations: 11.95 kB / 475.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.128, allocations: 24.38 kB / 475.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.128, allocations: 20 kB / 475.3 MB, free: 6.793 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001701/0.1282, allocations: 181.6 kB / 475.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.1283, allocations: 35.53 kB / 475.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002767/0.1286, allocations: 164.8 kB / 475.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1286, allocations: 4 kB / 475.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1286, allocations: 3.984 kB / 475.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1286, allocations: 3.953 kB / 475.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005913/0.1292, allocations: 0.5271 MB / 476.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1292, allocations: 0 / 476.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1294, allocations: 35.92 kB / 476.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1294, allocations: 4 kB / 476.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1294, allocations: 4 kB / 476.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1294, allocations: 7.953 kB / 476.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1295, allocations: 0 / 476.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.1299, allocations: 434.2 kB / 476.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.353e-05/0.13, allocations: 116.6 kB / 476.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.13, allocations: 4.031 kB / 476.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.1302, allocations: 12 kB / 476.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.1302, allocations: 8.078 kB / 476.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.1302, allocations: 7.938 kB / 476.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.1305, allocations: 251.2 kB / 477.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1305, allocations: 0 / 477.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000385/0.1309, allocations: 76 kB / 477.1 MB, free: 4.809 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.329e-05/0.131, allocations: 99.17 kB / 477.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.1312, allocations: 155.8 kB / 477.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1312, allocations: 3.938 kB / 477.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.317e-05/0.1313, allocations: 63.94 kB / 477.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.1318, allocations: 90.83 kB / 477.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.1332, allocations: 1.069 MB / 478.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006282/0.1338, allocations: 0.8467 MB / 479.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001591/0.134, allocations: 55.25 kB / 479.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.157e-05/0.1341, allocations: 31.42 kB / 479.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1341, allocations: 0 / 479.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of Templates: time 0.006832/0.1409, allocations: 2.964 MB / 482.5 MB, free: 15.4 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches