Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001067, allocations: 88.81 kB / 16.65 MB, free: 6.289 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.001399/0.001399, allocations: 181.4 kB / 17.56 MB, free: 5.91 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.351/1.351, allocations: 223.2 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.08 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003042/0.0003045, allocations: 8 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1204, allocations: 59.16 MB / 459.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005875/0.1263, allocations: 4.957 MB / 464.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003897/0.1302, allocations: 2.579 MB / 467.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000663/0.1309, allocations: 23.88 kB / 467.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003797/0.1313, allocations: 63.55 kB / 467.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001545/0.1329, allocations: 494.3 kB / 468 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007806/0.1337, allocations: 251.4 kB / 468.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.135, allocations: 1.126 MB / 469.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.1363, allocations: 0.575 MB / 469.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006387/0.137, allocations: 250.8 kB / 470.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006096/0.1376, allocations: 326.8 kB / 470.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.889e-05/0.1377, allocations: 16 kB / 470.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.139, allocations: 0.7716 MB / 471.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1392, allocations: 175.5 kB / 471.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.1396, allocations: 248.5 kB / 471.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.1408, allocations: 0.7826 MB / 472.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1408, allocations: 0 / 472.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1408, allocations: 4 kB / 472.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.1409, allocations: 0 / 472.5 MB, free: 10.39 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.00117/0.142, allocations: 0.6826 MB / 473.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1421, allocations: 12.03 kB / 473.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.1438, allocations: 208 kB / 473.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.1443, allocations: 354.4 kB / 473.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.1444, allocations: 29.38 kB / 473.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.1445, allocations: 44.38 kB / 473.8 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009941/0.1455, allocations: 0.6305 MB / 474.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.1455, allocations: 7.844 kB / 474.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/0.1456, allocations: 16 kB / 474.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.145e-05/0.1456, allocations: 32.98 kB / 474.5 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009292/0.1466, allocations: 0.6089 MB / 475.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003358/0.1499, allocations: 2.261 MB / 477.4 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.1506, allocations: 498.5 kB / 477.8 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.151, allocations: 236.2 kB / 478.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.151, allocations: 4 kB / 478.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.1511, allocations: 46.5 kB / 478.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.655e-06/0.1511, allocations: 0 / 478.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003578/0.1547, allocations: 1.713 MB / 479.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.1547, allocations: 89.22 kB / 479.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003031/0.155, allocations: 278.9 kB / 480.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.1551, allocations: 33.7 kB / 480.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.1552, allocations: 232 kB / 480.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.1554, allocations: 145.8 kB / 480.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/0.1555, allocations: 45.7 kB / 480.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1556, allocations: 346.7 kB / 481 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.1559, allocations: 181 kB / 481.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.1563, allocations: 290.3 kB / 481.4 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008621/0.1571, allocations: 0.5044 MB / 481.9 MB, free: 428 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1572, allocations: 0 / 481.9 MB, free: 428 kB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001776/0.159, allocations: 0.6809 MB / 482.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.159, allocations: 8 kB / 482.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.159, allocations: 448 / 482.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008045/0.1598, allocations: 180.7 kB / 482.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005128/0.1604, allocations: 95.88 kB / 482.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004649/0.165, allocations: 2.53 MB / 485.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.1654, allocations: 27.97 kB / 485.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.866e-05/0.1655, allocations: 20 kB / 485.5 MB, free: 12.74 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003447/0.1658, allocations: 195.9 kB / 485.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.166, allocations: 43.53 kB / 485.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/0.1678, allocations: 0.6297 MB / 486.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.1679, allocations: 8 kB / 486.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1679, allocations: 0 / 486.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.1679, allocations: 7.984 kB / 486.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/0.1713, allocations: 1.355 MB / 487.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.1713, allocations: 3.984 kB / 487.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/0.1719, allocations: 71.91 kB / 487.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006737/0.1726, allocations: 148.7 kB / 487.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.1727, allocations: 8.062 kB / 487.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.1768, allocations: 2.323 MB / 490.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.1768, allocations: 11.98 kB / 490.3 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.1791, allocations: 0.9608 MB / 491.2 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.1793, allocations: 108.7 kB / 491.3 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.542e-05/0.1794, allocations: 8 kB / 491.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.1798, allocations: 16.03 kB / 491.4 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.1799, allocations: 31.95 kB / 491.4 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.18, allocations: 15.98 kB / 491.4 MB, free: 6.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003194/0.1803, allocations: 201.9 kB / 491.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1803, allocations: 0 / 491.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001113/0.1814, allocations: 136 kB / 491.7 MB, free: 6.195 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000189/0.1816, allocations: 119.1 kB / 491.9 MB, free: 6.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001913/0.1836, allocations: 0.6694 MB / 492.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1836, allocations: 0 / 492.5 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.1847, allocations: 418.3 kB / 492.9 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.1855, allocations: 68.56 kB / 493 MB, free: 4.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.1885, allocations: 1.402 MB / 494.4 MB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.1892, allocations: 0.871 MB / 495.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003408/0.1896, allocations: 71.17 kB / 495.3 MB, free: 2.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.1897, allocations: 31.44 kB / 495.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1897, allocations: 0 / 495.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of Templates: time 0.01492/0.2047, allocations: 5.248 MB / 0.4889 GB, free: 13.22 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches