Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.002049/0.002049, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.002305/0.002305, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.497/1.497, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.1928/0.1928, allocations: 38.52 MB / 342.5 MB, free: 8.082 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.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceSynchron,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 64.84 kB / 478.6 MB, free: 33.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1344, allocations: 61.24 MB / 0.5272 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.007205/0.1416, allocations: 4.469 MB / 0.5316 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.1446, allocations: 1.43 MB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002751/0.1448, allocations: 15.94 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.1461, allocations: 386.3 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007599/0.1469, allocations: 258.8 kB / 0.5336 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008214/0.1477, allocations: 243.4 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1487, allocations: 0.5534 MB / 0.5344 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005028/0.1492, allocations: 225.1 kB / 0.5346 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005112/0.1498, allocations: 267 kB / 0.5348 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006836/0.1504, allocations: 378.8 kB / 0.5352 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-05/0.1505, allocations: 43.94 kB / 0.5352 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005539/0.1511, allocations: 231.6 kB / 0.5355 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.1513, allocations: 247.4 kB / 0.5357 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.1517, allocations: 258.7 kB / 0.5359 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.1527, allocations: 0.6695 MB / 0.5366 GB, free: 7.742 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1527, allocations: 0 / 0.5366 GB, free: 7.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1527, allocations: 0 / 0.5366 GB, free: 7.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1527, allocations: 0 / 0.5366 GB, free: 7.742 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001575/0.1543, allocations: 0.7887 MB / 0.5374 GB, free: 6.902 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.1543, allocations: 11.89 kB / 0.5374 GB, free: 6.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.1544, allocations: 90.7 kB / 0.5375 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005892/0.155, allocations: 88.55 kB / 0.5375 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008988/0.1559, allocations: 435.4 kB / 0.538 GB, free: 6.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.156, allocations: 25.38 kB / 0.538 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1561, allocations: 43.94 kB / 0.538 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.1572, allocations: 0.6804 MB / 0.5387 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.1572, allocations: 0 / 0.5387 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.289e-05/0.1573, allocations: 19.98 kB / 0.5387 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001863/0.1575, allocations: 56.89 kB / 0.5388 GB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.1586, allocations: 0.6674 MB / 0.5394 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004149/0.1627, allocations: 2.513 MB / 0.5419 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006241/0.1634, allocations: 317.3 kB / 0.5422 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.1637, allocations: 205.9 kB / 0.5424 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.535e-05/0.1637, allocations: 15.92 kB / 0.5424 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/0.1638, allocations: 30.56 kB / 0.5424 GB, free: 1.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.226e-06/0.1638, allocations: 0 / 0.5424 GB, free: 1.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.002521/0.1663, allocations: 1.366 MB / 0.5437 GB, free: 56 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.367e-05/0.1664, allocations: 85.05 kB / 0.5438 GB, free: 15.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.1668, allocations: 304.4 kB / 0.5441 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.1668, allocations: 33.7 kB / 0.5441 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.167, allocations: 260.2 kB / 0.5444 GB, free: 15.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.1672, allocations: 150.7 kB / 0.5445 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.1673, allocations: 90.38 kB / 0.5446 GB, free: 15.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1675, allocations: 354.8 kB / 0.545 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.1678, allocations: 201 kB / 0.5452 GB, free: 14.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/0.1683, allocations: 369 kB / 0.5455 GB, free: 14.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008552/0.1692, allocations: 0.6096 MB / 0.5461 GB, free: 13.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.1692, allocations: 4 kB / 0.5461 GB, free: 13.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001073/0.1702, allocations: 0.6309 MB / 0.5467 GB, free: 12.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.1703, allocations: 11.94 kB / 0.5467 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.1703, allocations: 4 kB / 0.5467 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.1703, allocations: 8 kB / 0.5467 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.1708, allocations: 115.8 kB / 0.5469 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.1708, allocations: 12.44 kB / 0.5469 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.1711, allocations: 27.97 kB / 0.5469 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.156e-05/0.1711, allocations: 20 kB / 0.5469 GB, free: 12.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * 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.0003362/0.1714, allocations: 213.6 kB / 0.5471 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1716, allocations: 43.7 kB / 0.5472 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009205/0.1725, allocations: 496.4 kB / 0.5476 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.626e-05/0.1725, allocations: 15.94 kB / 0.5476 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1726, allocations: 3.984 kB / 0.5477 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1726, allocations: 0 / 0.5477 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.1747, allocations: 1.105 MB / 0.5487 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1747, allocations: 0 / 0.5487 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003762/0.1751, allocations: 75.89 kB / 0.5488 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.1751, allocations: 0 / 0.5488 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.1752, allocations: 11.98 kB / 0.5488 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.204e-06/0.1752, allocations: 8.094 kB / 0.5488 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1752, allocations: 0 / 0.5488 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.1765, allocations: 0.8242 MB / 0.5496 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.1767, allocations: 116.8 kB / 0.5497 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.1767, allocations: 12 kB / 0.5497 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.1769, allocations: 15.98 kB / 0.5498 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.177, allocations: 23.91 kB / 0.5498 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/0.177, allocations: 12 kB / 0.5498 GB, free: 9.523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002831/0.1773, allocations: 215 kB / 0.55 GB, free: 9.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1773, allocations: 0 / 0.55 GB, free: 9.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005457/0.1778, allocations: 108 kB / 0.5501 GB, free: 9.207 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * 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.001783/0.1796, allocations: 1.408 MB / 0.5515 GB, free: 7.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008756/0.1805, allocations: 463.4 kB / 0.5519 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1805, allocations: 4 kB / 0.5519 GB, free: 7.305 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.1808, allocations: 209.4 kB / 0.5521 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.1814, allocations: 77.23 kB / 0.5522 GB, free: 7.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.1881, allocations: 4.393 MB / 0.5565 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006822/0.1888, allocations: 0.8743 MB / 0.5573 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004017/0.1892, allocations: 123.2 kB / 0.5575 GB, free: 1.379 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.1894, allocations: 143.4 kB / 0.5576 GB, free: 1.238 MB / 414.1 MB Notification: Performance of SimCode: time 1.643e-06/0.1894, allocations: 0 / 0.5576 GB, free: 1.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03996/0.2294, allocations: 8.029 MB / 0.5654 GB, free: 9.336 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.423/9.652, allocations: 5.797 kB / 0.5654 GB, free: 9.336 MB / 430.1 MB " [Timeout remaining time 650] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceSynchron.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceSynchron.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceSynchron.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.742287669330835]