Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001238/0.001238, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.495/1.495, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.03 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.00142, allocations: 59.22 kB / 400.2 MB, free: 33.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1384, allocations: 58.07 MB / 458.3 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.01079/0.1493, allocations: 7.621 MB / 465.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009633/0.159, allocations: 5.375 MB / 471.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.1601, allocations: 23.88 kB / 471.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01126/0.1714, allocations: 5.179 MB / 476.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002088/0.1735, allocations: 0.6377 MB / 477.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.1748, allocations: 450.1 kB / 477.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004088/0.1789, allocations: 2.21 MB / 479.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.1807, allocations: 1.127 MB / 480.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.182, allocations: 0.6305 MB / 481.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.1832, allocations: 0.7396 MB / 482.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.1834, allocations: 116 kB / 482.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008948/0.1843, allocations: 391.6 kB / 482.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005021/0.1849, allocations: 0.491 MB / 483.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007201/0.1856, allocations: 0.6027 MB / 483.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001902/0.1875, allocations: 1.71 MB / 485.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1875, allocations: 0 / 485.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.1875, allocations: 0 / 485.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.1876, allocations: 3.938 kB / 485.6 MB, free: 11.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002933/0.1905, allocations: 1.421 MB / 487 MB, free: 10.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.1906, allocations: 11.89 kB / 487 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/0.1913, allocations: 151.5 kB / 487.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.1932, allocations: 0.9678 MB / 488.2 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.767e-05/0.1932, allocations: 61.98 kB / 488.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002241/0.1935, allocations: 87.98 kB / 488.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/0.1952, allocations: 1.071 MB / 489.4 MB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.859e-05/0.1952, allocations: 7.906 kB / 489.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.429e-05/0.1953, allocations: 35.98 kB / 489.4 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002225/0.1955, allocations: 73.94 kB / 489.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1969, allocations: 0.8392 MB / 490.3 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005647/0.2025, allocations: 3.973 MB / 494.3 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.2036, allocations: 0.6186 MB / 494.9 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004371/0.2041, allocations: 317.5 kB / 495.2 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-05/0.2041, allocations: 16.55 kB / 495.2 MB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.2042, allocations: 43.06 kB / 495.3 MB, free: 1.863 MB / 366.1 MB Notification: Performance of pre-optimization done (n=57): time 2.665e-06/0.2042, allocations: 4 kB / 495.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004661/0.2088, allocations: 2.587 MB / 497.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.2089, allocations: 111.4 kB / 498 MB, free: 15.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009065/0.2099, allocations: 0.6957 MB / 498.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.2099, allocations: 45.64 kB / 498.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.2103, allocations: 483 kB / 499.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.2105, allocations: 236.6 kB / 499.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.2107, allocations: 146.6 kB / 499.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.2109, allocations: 390.8 kB / 499.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.2114, allocations: 309.8 kB / 0.4885 GB, free: 12.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006149/0.212, allocations: 0.5149 MB / 0.489 GB, free: 12.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003622/0.2157, allocations: 1.668 MB / 0.4907 GB, free: 10.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.353e-06/0.2157, allocations: 4 kB / 0.4907 GB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002256/0.2179, allocations: 1.271 MB / 0.4919 GB, free: 9.062 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.218, allocations: 11.94 kB / 0.4919 GB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.218, allocations: 8 kB / 0.4919 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.2191, allocations: 409.4 kB / 0.4923 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005106/0.2196, allocations: 147.8 kB / 0.4925 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007893/0.2275, allocations: 6.223 MB / 0.4985 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006222/0.2281, allocations: 27.98 kB / 0.4986 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-05/0.2282, allocations: 32 kB / 0.4986 GB, free: 1.906 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0005959/0.2288, allocations: 373.5 kB / 0.4989 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.229, allocations: 78.97 kB / 0.499 GB, free: 1.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.2306, allocations: 0.8994 MB / 0.4999 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.2306, allocations: 8 kB / 0.4999 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2306, allocations: 4 kB / 0.4999 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.2306, allocations: 7.984 kB / 0.4999 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/0.2339, allocations: 2.002 MB / 0.5019 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2339, allocations: 4 kB / 0.5019 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005938/0.2345, allocations: 120 kB / 0.502 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005361/0.2351, allocations: 190.2 kB / 0.5022 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.544e-05/0.2351, allocations: 27.98 kB / 0.5022 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004655/0.2398, allocations: 5.484 MB / 0.5076 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2398, allocations: 0 / 0.5076 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.2419, allocations: 1.263 MB / 0.5088 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/0.2423, allocations: 208 kB / 0.509 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.2424, allocations: 27.92 kB / 0.509 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.2428, allocations: 20 kB / 0.509 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.2429, allocations: 44.48 kB / 0.5091 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.004e-05/0.243, allocations: 20.09 kB / 0.5091 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007105/0.2437, allocations: 0.4912 MB / 0.5096 GB, free: 6.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2437, allocations: 0 / 0.5096 GB, free: 6.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001132/0.2448, allocations: 244 kB / 0.5098 GB, free: 5.797 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/0.2459, allocations: 432.9 kB / 0.5102 GB, free: 5.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002001/0.2479, allocations: 1.146 MB / 0.5113 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2479, allocations: 0 / 0.5113 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009262/0.2489, allocations: 0.7141 MB / 0.512 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008702/0.2497, allocations: 199.3 kB / 0.5122 GB, free: 3.406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003895/0.2536, allocations: 2.48 MB / 0.5146 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2525/0.5062, allocations: 1.146 MB / 0.5158 GB, free: 69.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007575/0.507, allocations: 158.4 kB / 0.5159 GB, free: 69.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.5072, allocations: 59.94 kB / 0.516 GB, free: 69.05 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5072, allocations: 0 / 0.516 GB, free: 69.05 MB / 398.1 MB Notification: Performance of Templates: time 0.02678/0.534, allocations: 12.46 MB / 0.5281 GB, free: 66.71 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches