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.002437/0.002437, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.003094/0.003094, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.802/1.802, 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.2174/0.2174, allocations: 38.03 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 57.17 kB / 400.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1631, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00747/0.1706, allocations: 4.925 MB / 463.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003928/0.1746, allocations: 2.477 MB / 465.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/0.1749, allocations: 15.94 kB / 465.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.1763, allocations: 449 kB / 466.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001225/0.1775, allocations: 0.5058 MB / 466.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.1784, allocations: 279.2 kB / 466.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009111/0.1793, allocations: 0.7282 MB / 467.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005711/0.1799, allocations: 341.5 kB / 468 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004398/0.1803, allocations: 314.7 kB / 468.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004958/0.1808, allocations: 322.8 kB / 468.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.1809, allocations: 39.94 kB / 468.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.182, allocations: 0.6352 MB / 469.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002037/0.1822, allocations: 195.4 kB / 469.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002622/0.1824, allocations: 250.8 kB / 469.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009201/0.1834, allocations: 0.7518 MB / 470.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1834, allocations: 0 / 470.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1834, allocations: 0 / 470.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1834, allocations: 0 / 470.5 MB, free: 11.12 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.001201/0.1846, allocations: 0.783 MB / 471.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.1847, allocations: 11.89 kB / 471.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001674/0.1864, allocations: 200.1 kB / 471.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.1869, allocations: 374.3 kB / 471.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.187, allocations: 33.38 kB / 471.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.332e-05/0.1871, allocations: 44.36 kB / 471.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009371/0.188, allocations: 0.6266 MB / 472.5 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.1881, allocations: 4 kB / 472.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.1881, allocations: 16 kB / 472.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.779e-05/0.1882, allocations: 40.97 kB / 472.6 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000931/0.1891, allocations: 0.6089 MB / 473.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.1925, allocations: 2.245 MB / 475.5 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.1931, allocations: 482.6 kB / 475.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.1935, allocations: 241.7 kB / 476.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.1935, allocations: 4 kB / 476.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.1936, allocations: 42.5 kB / 476.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.925e-06/0.1936, allocations: 0 / 476.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003515/0.1971, allocations: 1.705 MB / 477.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.1972, allocations: 85.11 kB / 478 MB, free: 3.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.1975, allocations: 279.1 kB / 478.3 MB, free: 2.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.1975, allocations: 33.7 kB / 478.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1977, allocations: 228 kB / 478.5 MB, free: 2.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.1978, allocations: 153.8 kB / 478.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.1979, allocations: 90.19 kB / 478.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1981, allocations: 350.7 kB / 479.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002631/0.1983, allocations: 177 kB / 479.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.1987, allocations: 294.3 kB / 479.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006651/0.1994, allocations: 0.4966 MB / 480.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1994, allocations: 4 kB / 480.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001122/0.2005, allocations: 0.6847 MB / 480.8 MB, free: 332 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.2006, allocations: 4 kB / 480.8 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2006, allocations: 7.938 kB / 480.8 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/0.2012, allocations: 177.1 kB / 480.9 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.2015, allocations: 87.89 kB / 481 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003665/0.2052, allocations: 2.801 MB / 483.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.2055, allocations: 15.98 kB / 483.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.2055, allocations: 23.98 kB / 483.9 MB, free: 13.08 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.000292/0.2058, allocations: 193.7 kB / 484.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.832e-05/0.2059, allocations: 51.48 kB / 484.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.2072, allocations: 0.6259 MB / 484.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.2072, allocations: 8 kB / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.2072, allocations: 0 / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.2072, allocations: 7.922 kB / 484.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.2095, allocations: 1.344 MB / 486.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.2095, allocations: 4.062 kB / 486.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.2099, allocations: 75.89 kB / 486.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004572/0.2103, allocations: 144.7 kB / 486.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.2104, allocations: 8 kB / 486.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003111/0.2135, allocations: 2.572 MB / 488.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2135, allocations: 0 / 488.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.215, allocations: 0.9506 MB / 489.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.2151, allocations: 116.8 kB / 490 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.2152, allocations: 15.94 kB / 490 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.2154, allocations: 12 kB / 490 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.2155, allocations: 39.84 kB / 490 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.2155, allocations: 19.98 kB / 490 MB, free: 6.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002277/0.2158, allocations: 194 kB / 490.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2158, allocations: 0 / 490.2 MB, free: 6.426 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006646/0.2164, allocations: 140 kB / 490.4 MB, free: 6.289 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.0001604/0.2166, allocations: 121.4 kB / 490.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.2179, allocations: 0.6695 MB / 491.2 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.2179, allocations: 8.188 kB / 491.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006993/0.2186, allocations: 430.2 kB / 491.6 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/0.2191, allocations: 64.34 kB / 491.6 MB, free: 4.977 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.221, allocations: 1.116 MB / 492.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.2215, allocations: 0.8707 MB / 493.6 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000194/0.2217, allocations: 75.22 kB / 493.7 MB, free: 2.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.35e-05/0.2218, allocations: 31.42 kB / 493.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2218, allocations: 192 / 493.7 MB, free: 2.824 MB / 366.1 MB Notification: Performance of Templates: time 0.01122/0.2331, allocations: 5.722 MB / 499.5 MB, free: 13.11 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches