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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 123.8 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.215/0.215, allocations: 38.51 MB / 342.5 MB, free: 8.074 MB / 270.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 60.41 kB / 478.6 MB, free: 33.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1244, allocations: 61.24 MB / 0.5272 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.008739/0.1332, allocations: 5.49 MB / 0.5326 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.1357, allocations: 1.111 MB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004552/0.1361, allocations: 15.88 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003609/0.1365, allocations: 83.2 kB / 0.5337 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1375, allocations: 310.3 kB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004418/0.138, allocations: 139.8 kB / 0.5342 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.139, allocations: 0.7006 MB / 0.5349 GB, free: 9.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003376/0.1394, allocations: 136.8 kB / 0.535 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006797/0.14, allocations: 318.7 kB / 0.5353 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000724/0.1408, allocations: 338.7 kB / 0.5356 GB, free: 8.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.041e-05/0.1409, allocations: 32 kB / 0.5356 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.141, allocations: 32 kB / 0.5357 GB, free: 8.676 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.1412, allocations: 159.5 kB / 0.5358 GB, free: 8.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003632/0.1415, allocations: 246.7 kB / 0.5361 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008007/0.1423, allocations: 0.4939 MB / 0.5365 GB, free: 7.781 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1423, allocations: 0 / 0.5365 GB, free: 7.781 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1423, allocations: 0 / 0.5365 GB, free: 7.781 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1424, allocations: 0 / 0.5365 GB, free: 7.781 MB / 398.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.001734/0.1441, allocations: 0.8004 MB / 0.5373 GB, free: 6.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.1441, allocations: 11.89 kB / 0.5373 GB, free: 6.914 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.1443, allocations: 82.64 kB / 0.5374 GB, free: 6.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.1444, allocations: 56.61 kB / 0.5375 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.1454, allocations: 460.3 kB / 0.5379 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.1454, allocations: 33 kB / 0.5379 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.526e-05/0.1455, allocations: 36 kB / 0.538 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008115/0.1463, allocations: 459.6 kB / 0.5384 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.1463, allocations: 3.938 kB / 0.5384 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.356e-05/0.1464, allocations: 16 kB / 0.5384 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.1464, allocations: 8 kB / 0.5384 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005977/0.147, allocations: 304.7 kB / 0.5387 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002916/0.1499, allocations: 1.775 MB / 0.5405 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.1502, allocations: 139.6 kB / 0.5406 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.879e-05/0.1503, allocations: 50.67 kB / 0.5406 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.1503, allocations: 7.984 kB / 0.5407 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.1504, allocations: 42.48 kB / 0.5407 GB, free: 3.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 2.825e-06/0.1504, allocations: 3.938 kB / 0.5407 GB, free: 3.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001276/0.1517, allocations: 0.6175 MB / 0.5413 GB, free: 2.566 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.1517, allocations: 110.8 kB / 0.5414 GB, free: 2.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/0.1522, allocations: 373.6 kB / 0.5418 GB, free: 2.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.1522, allocations: 29.7 kB / 0.5418 GB, free: 2.023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.1525, allocations: 280 kB / 0.5421 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.314e-05/0.1525, allocations: 67.47 kB / 0.5421 GB, free: 1.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1526, allocations: 61.83 kB / 0.5422 GB, free: 1.613 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1528, allocations: 346.8 kB / 0.5425 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1529, allocations: 44.41 kB / 0.5426 GB, free: 1.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.1532, allocations: 202.5 kB / 0.5427 GB, free: 0.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.1535, allocations: 262.6 kB / 0.543 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1535, allocations: 4 kB / 0.543 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00054/0.1541, allocations: 301.3 kB / 0.5433 GB, free: 336 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.1541, allocations: 4 kB / 0.5433 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.1541, allocations: 8 kB / 0.5433 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.1542, allocations: 4 kB / 0.5433 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.1545, allocations: 71.91 kB / 0.5434 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.31e-05/0.1545, allocations: 15.92 kB / 0.5434 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.1547, allocations: 11.94 kB / 0.5434 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.1547, allocations: 16 kB / 0.5434 GB, free: 204 kB / 398.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.0002792/0.155, allocations: 181.9 kB / 0.5436 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.1551, allocations: 39.77 kB / 0.5436 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003477/0.1555, allocations: 168.6 kB / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.1555, allocations: 4 kB / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1555, allocations: 0 / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1555, allocations: 0 / 0.5438 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008106/0.1563, allocations: 0.5307 MB / 0.5443 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1563, allocations: 4.031 kB / 0.5443 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.1565, allocations: 35.98 kB / 0.5443 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-06/0.1565, allocations: 7.984 kB / 0.5444 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.1565, allocations: 3.938 kB / 0.5444 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.1565, allocations: 4 kB / 0.5444 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.1566, allocations: 7.953 kB / 0.5444 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.1571, allocations: 407.1 kB / 0.5448 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1572, allocations: 116.8 kB / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.161e-05/0.1572, allocations: 0 / 0.5449 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.1574, allocations: 11.94 kB / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.1574, allocations: 7.984 kB / 0.5449 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.1575, allocations: 7.938 kB / 0.5449 GB, free: 14.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002902/0.1577, allocations: 255.2 kB / 0.5451 GB, free: 14.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1577, allocations: 0 / 0.5451 GB, free: 14.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004722/0.1582, allocations: 80 kB / 0.5452 GB, free: 14.23 MB / 414.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.000832/0.1591, allocations: 0.9307 MB / 0.5461 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003527/0.1594, allocations: 151.7 kB / 0.5463 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1594, allocations: 0 / 0.5463 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.89e-05/0.1595, allocations: 53.23 kB / 0.5463 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008084/0.1603, allocations: 96.31 kB / 0.5464 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/0.1651, allocations: 3.422 MB / 0.5498 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.1656, allocations: 0.8387 MB / 0.5506 GB, free: 8.469 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002196/0.1658, allocations: 51.27 kB / 0.5506 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.166, allocations: 147.4 kB / 0.5508 GB, free: 8.273 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.166, allocations: 0 / 0.5508 GB, free: 8.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03921/0.2052, allocations: 7.103 MB / 0.5577 GB, free: 1.305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.381/9.587, allocations: 3.938 kB / 0.5577 GB, free: 1.301 MB / 414.1 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.63182007195428]