Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.002096/0.002096, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.799/1.799, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2045/0.2045, allocations: 38.04 MB / 330.5 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.16 kB / 400.3 MB, free: 33.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1996, allocations: 58.06 MB / 458.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.007962/0.2077, allocations: 3.311 MB / 461.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.2104, allocations: 1.232 MB / 462.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.2107, allocations: 8 kB / 462.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.2118, allocations: 159.3 kB / 463 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006468/0.2125, allocations: 171.2 kB / 463.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.213, allocations: 131.6 kB / 463.3 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.2135, allocations: 283 kB / 463.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004278/0.2139, allocations: 126.2 kB / 463.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.2142, allocations: 127.5 kB / 463.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.2144, allocations: 103.5 kB / 463.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/0.2145, allocations: 16 kB / 464 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005213/0.215, allocations: 227.4 kB / 464.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2151, allocations: 63.8 kB / 464.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001409/0.2153, allocations: 91.55 kB / 464.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005517/0.2158, allocations: 287.1 kB / 464.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.2159, allocations: 4 kB / 464.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.2159, allocations: 0 / 464.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2159, allocations: 0 / 464.6 MB, free: 0.9609 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009387/0.2168, allocations: 0.4989 MB / 465.1 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/0.2169, allocations: 15.97 kB / 465.1 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009318/0.2179, allocations: 72.67 kB / 465.2 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.2184, allocations: 264.6 kB / 465.5 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.2184, allocations: 12.7 kB / 465.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.2185, allocations: 20.36 kB / 465.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/0.219, allocations: 276 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.2191, allocations: 0 / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.2191, allocations: 8 kB / 465.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.175e-05/0.2192, allocations: 12.33 kB / 465.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004332/0.2196, allocations: 220.3 kB / 466 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.2217, allocations: 1.218 MB / 467.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.222, allocations: 129.2 kB / 467.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.2221, allocations: 49.7 kB / 467.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.2221, allocations: 0 / 467.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.2222, allocations: 46.5 kB / 467.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.2222, allocations: 0 / 467.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004723/0.2227, allocations: 165.3 kB / 467.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/0.2228, allocations: 85.05 kB / 467.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.2231, allocations: 206.9 kB / 467.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.2231, allocations: 25.7 kB / 467.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.2233, allocations: 159.9 kB / 468.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.2233, allocations: 43.48 kB / 468.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.058e-05/0.2234, allocations: 41.7 kB / 468.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.2236, allocations: 330.8 kB / 468.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.835e-05/0.2237, allocations: 43.98 kB / 468.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.2239, allocations: 129 kB / 468.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.2241, allocations: 182.1 kB / 468.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2241, allocations: 0 / 468.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000373/0.2245, allocations: 209.2 kB / 469 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.2246, allocations: 8 kB / 469 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2246, allocations: 4 kB / 469 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.249e-05/0.2246, allocations: 7.938 kB / 469 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.2249, allocations: 51.91 kB / 469.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.2265, allocations: 1.416 MB / 470.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.2266, allocations: 15.84 kB / 470.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.2267, allocations: 15.98 kB / 470.5 MB, free: 10.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002055/0.2269, allocations: 145.8 kB / 470.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.2269, allocations: 19.8 kB / 470.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000311/0.2272, allocations: 139 kB / 470.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2273, allocations: 4 kB / 470.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.2273, allocations: 0 / 470.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.2273, allocations: 0 / 470.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008108/0.2281, allocations: 0.4921 MB / 471.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2281, allocations: 0 / 471.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.2283, allocations: 35.91 kB / 471.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.2283, allocations: 4 kB / 471.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.2283, allocations: 7.984 kB / 471.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.2296, allocations: 1.42 MB / 472.8 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2296, allocations: 4.125 kB / 472.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.23, allocations: 317.7 kB / 473.1 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.865e-05/0.2302, allocations: 88.95 kB / 473.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.2302, allocations: 4 kB / 473.2 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.2303, allocations: 4 kB / 473.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.2304, allocations: 11.92 kB / 473.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.2304, allocations: 4 kB / 473.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.2306, allocations: 152.6 kB / 473.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2306, allocations: 4.062 kB / 473.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004478/0.231, allocations: 55.84 kB / 473.4 MB, free: 7.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002002/0.2312, allocations: 91.25 kB / 473.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004125/0.2316, allocations: 131.7 kB / 473.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.2317, allocations: 4.688 kB / 473.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.2318, allocations: 63.84 kB / 473.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.2323, allocations: 31.72 kB / 473.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.2336, allocations: 0.5045 MB / 474.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005471/0.2342, allocations: 0.7398 MB / 475 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.2343, allocations: 33.52 kB / 475 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.2343, allocations: 19.38 kB / 475 MB, free: 5.688 MB / 350.1 MB Notification: Performance of SimCode: time 6.12e-07/0.2343, allocations: 0 / 475 MB, free: 5.688 MB / 350.1 MB Notification: Performance of Templates: time 0.005868/0.2402, allocations: 1.489 MB / 476.5 MB, free: 4.203 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches